~canonical-dx-team/ubuntu/maverick/gtk+2.0/menuproxy

« back to all changes in this revision

Viewing changes to docs/reference/gtk/html/TextWidget.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2009-09-23 06:36:41 UTC
  • mfrom: (1.3.2 upstream)
  • mto: (72.2.8 sid) (1.6.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 129.
  • Revision ID: james.westby@ubuntu.com-20090923063641-69c7g7h68iy4u5o3
Import upstream version 2.18.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
<link rel="chapter" href="gtk-migrating-GtkBuilder.html" title="Migrating from libglade to GtkBuilder">
50
50
<link rel="chapter" href="gtk-migrating-tooltips.html" title="Migrating from GtkTooltips to GtkTooltip">
51
51
<link rel="chapter" href="gtk-migrating-entry-icons.html" title="Migrating from SexyIconEntry to GtkEntry">
 
52
<link rel="chapter" href="gtk-migrating-label-links.html" title="Migrating from SexyUrlLabel to GtkLabel">
 
53
<link rel="chapter" href="gtk-migrating-ClientSideWindows.html" title="Migrating to client-side windows">
52
54
<link rel="part" href="pt05.html" title="Part V. GTK+ Tools">
53
55
<link rel="glossary" href="glossary.html" title="Glossary">
54
56
<link rel="index" href="api-index-full.html" title="Index of all symbols">
61
63
<link rel="index" href="api-index-2-12.html" title="Index of new symbols in 2.12">
62
64
<link rel="index" href="api-index-2-14.html" title="Index of new symbols in 2.14">
63
65
<link rel="index" href="api-index-2-16.html" title="Index of new symbols in 2.16">
 
66
<link rel="index" href="api-index-2-18.html" title="Index of new symbols in 2.18">
64
67
</head>
65
68
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
66
69
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
80
83
<td valign="top" align="right"></td>
81
84
</tr></table></div>
82
85
<div class="refsect1" title="Conceptual Overview">
83
 
<a name="id580579"></a><h2>Conceptual Overview</h2>
 
86
<a name="id638073"></a><h2>Conceptual Overview</h2>
84
87
<p>
85
88
GTK+ has an extremely powerful framework for multiline text editing.  The
86
89
primary objects involved in the process are <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>, which represents the 
148
151
no text is selected, these two marks will be in the same position. You can 
149
152
manipulate what is selected and where the cursor appears by moving these 
150
153
marks around.
151
 
<sup>[<a name="id818113" href="#ftn.id818113" class="footnote">2</a>]</sup>
 
154
<sup>[<a name="id631659" href="#ftn.id631659" class="footnote">2</a>]</sup>
152
155
</p>
153
156
<p>
154
157
Text buffers always contain at least one line, but may be empty (that
162
165
</p>
163
166
</div>
164
167
<div class="refsect1" title="Simple Example">
165
 
<a name="id867391"></a><h2>Simple Example</h2>
 
168
<a name="id654165"></a><h2>Simple Example</h2>
166
169
<p>
167
170
The simplest usage of <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>  might look like this:
168
171
</p>
189
192
</p>
190
193
</div>
191
194
<div class="refsect1" title="Example of Changing Text Attributes">
192
 
<a name="id847259"></a><h2>Example of Changing Text Attributes</h2>
 
195
<a name="id632042"></a><h2>Example of Changing Text Attributes</h2>
193
196
<p>
194
197
 
195
198
There are two ways to affect text attributes in <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>.
244
247
</div>
245
248
<div class="footnotes">
246
249
<br><hr width="100" align="left">
247
 
<div class="footnote"><p><sup>[<a name="ftn.id818113" href="#id818113" class="para">2</a>] </sup>
 
250
<div class="footnote"><p><sup>[<a name="ftn.id631659" href="#id631659" class="para">2</a>] </sup>
248
251
If you want to place the cursor in response to a user action, be sure to use
249
252
<a class="link" href="GtkTextBuffer.html#gtk-text-buffer-place-cursor" title="gtk_text_buffer_place_cursor ()"><code class="function">gtk_text_buffer_place_cursor()</code></a>, which moves both at once without causing a 
250
253
temporary selection (moving one then the other temporarily selects the range in