~ubuntu-branches/debian/experimental/gtk+2.0/experimental

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Josselin Mouette
  • Date: 2011-09-02 17:17:47 UTC
  • mto: (72.4.15 sid)
  • mto: This revision was merged to the branch mainline in revision 102.
  • Revision ID: package-import@ubuntu.com-20110902171747-i8dr3czswn2sk7tu
Tags: upstream-2.24.6
Import upstream version 2.24.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkComboBoxText.html#gtk-combo-box-text-new" title="gtk_combo_box_text_new ()">gtk_combo_box_text_new</a>              (<em class="parameter"><code><span class="type">void</span></code></em>);
49
49
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkComboBoxText.html#gtk-combo-box-text-new-with-entry" title="gtk_combo_box_text_new_with_entry ()">gtk_combo_box_text_new_with_entry</a>   (<em class="parameter"><code><span class="type">void</span></code></em>);
50
50
<span class="returnvalue">void</span>                <a class="link" href="GtkComboBoxText.html#gtk-combo-box-text-append-text" title="gtk_combo_box_text_append_text ()">gtk_combo_box_text_append_text</a>      (<em class="parameter"><code><a class="link" href="GtkComboBoxText.html" title="GtkComboBoxText"><span class="type">GtkComboBoxText</span></a> *combo_box</code></em>,
51
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>);
 
51
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>);
52
52
<span class="returnvalue">void</span>                <a class="link" href="GtkComboBoxText.html#gtk-combo-box-text-insert-text" title="gtk_combo_box_text_insert_text ()">gtk_combo_box_text_insert_text</a>      (<em class="parameter"><code><a class="link" href="GtkComboBoxText.html" title="GtkComboBoxText"><span class="type">GtkComboBoxText</span></a> *combo_box</code></em>,
53
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> position</code></em>,
54
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>);
 
53
                                                         <em class="parameter"><code><span class="type">gint</span> position</code></em>,
 
54
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>);
55
55
<span class="returnvalue">void</span>                <a class="link" href="GtkComboBoxText.html#gtk-combo-box-text-prepend-text" title="gtk_combo_box_text_prepend_text ()">gtk_combo_box_text_prepend_text</a>     (<em class="parameter"><code><a class="link" href="GtkComboBoxText.html" title="GtkComboBoxText"><span class="type">GtkComboBoxText</span></a> *combo_box</code></em>,
56
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>);
57
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             <a class="link" href="GtkComboBoxText.html#gtk-combo-box-text-get-active-text" title="gtk_combo_box_text_get_active_text ()">gtk_combo_box_text_get_active_text</a>  (<em class="parameter"><code><a class="link" href="GtkComboBoxText.html" title="GtkComboBoxText"><span class="type">GtkComboBoxText</span></a> *combo_box</code></em>);
 
56
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>);
 
57
<span class="returnvalue">gchar</span> *             <a class="link" href="GtkComboBoxText.html#gtk-combo-box-text-get-active-text" title="gtk_combo_box_text_get_active_text ()">gtk_combo_box_text_get_active_text</a>  (<em class="parameter"><code><a class="link" href="GtkComboBoxText.html" title="GtkComboBoxText"><span class="type">GtkComboBoxText</span></a> *combo_box</code></em>);
58
58
</pre>
59
59
</div>
60
60
<div class="refsect1">
61
61
<a name="GtkComboBoxText.object-hierarchy"></a><h2>Object Hierarchy</h2>
62
62
<pre class="synopsis">
63
 
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
64
 
   +----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
 
63
  GObject
 
64
   +----GInitiallyUnowned
65
65
         +----<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
66
66
               +----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
67
67
                     +----<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
110
110
"context" and "comments".
111
111
</p>
112
112
<div class="example">
113
 
<a name="id837623"></a><p class="title"><b>Example 30. A UI definition fragment specifying GtkComboBoxText items</b></p>
 
113
<a name="id775126"></a><p class="title"><b>Example 30. A UI definition fragment specifying GtkComboBoxText items</b></p>
114
114
<div class="example-contents">
115
115
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
116
116
    <tbody>
188
188
<div class="refsect2">
189
189
<a name="gtk-combo-box-text-append-text"></a><h3>gtk_combo_box_text_append_text ()</h3>
190
190
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_combo_box_text_append_text      (<em class="parameter"><code><a class="link" href="GtkComboBoxText.html" title="GtkComboBoxText"><span class="type">GtkComboBoxText</span></a> *combo_box</code></em>,
191
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>);</pre>
 
191
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>);</pre>
192
192
<p>
193
193
Appends <em class="parameter"><code>string</code></em> to the list of strings stored in <em class="parameter"><code>combo_box</code></em>.
194
194
</p>
212
212
<div class="refsect2">
213
213
<a name="gtk-combo-box-text-insert-text"></a><h3>gtk_combo_box_text_insert_text ()</h3>
214
214
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_combo_box_text_insert_text      (<em class="parameter"><code><a class="link" href="GtkComboBoxText.html" title="GtkComboBoxText"><span class="type">GtkComboBoxText</span></a> *combo_box</code></em>,
215
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> position</code></em>,
216
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>);</pre>
 
215
                                                         <em class="parameter"><code><span class="type">gint</span> position</code></em>,
 
216
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>);</pre>
217
217
<p>
218
218
Inserts <em class="parameter"><code>string</code></em> at <em class="parameter"><code>position</code></em> in the list of strings stored in <em class="parameter"><code>combo_box</code></em>.
219
219
</p>
242
242
<div class="refsect2">
243
243
<a name="gtk-combo-box-text-prepend-text"></a><h3>gtk_combo_box_text_prepend_text ()</h3>
244
244
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_combo_box_text_prepend_text     (<em class="parameter"><code><a class="link" href="GtkComboBoxText.html" title="GtkComboBoxText"><span class="type">GtkComboBoxText</span></a> *combo_box</code></em>,
245
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>);</pre>
 
245
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>);</pre>
246
246
<p>
247
247
Prepends <em class="parameter"><code>string</code></em> to the list of strings stored in <em class="parameter"><code>combo_box</code></em>.
248
248
</p>
265
265
<hr>
266
266
<div class="refsect2">
267
267
<a name="gtk-combo-box-text-get-active-text"></a><h3>gtk_combo_box_text_get_active_text ()</h3>
268
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             gtk_combo_box_text_get_active_text  (<em class="parameter"><code><a class="link" href="GtkComboBoxText.html" title="GtkComboBoxText"><span class="type">GtkComboBoxText</span></a> *combo_box</code></em>);</pre>
 
268
<pre class="programlisting"><span class="returnvalue">gchar</span> *             gtk_combo_box_text_get_active_text  (<em class="parameter"><code><a class="link" href="GtkComboBoxText.html" title="GtkComboBoxText"><span class="type">GtkComboBoxText</span></a> *combo_box</code></em>);</pre>
269
269
<p>
270
 
Returns the currently active string in <em class="parameter"><code>combo_box</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
 
270
Returns the currently active string in <em class="parameter"><code>combo_box</code></em>, or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
271
271
if none is selected. If <em class="parameter"><code>combo_box</code></em> contains an entry, this
272
272
function will return its contents (which will not necessarily
273
273
be an item from the list).
283
283
<tr>
284
284
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
285
285
<td>a newly allocated string containing the currently
286
 
active text. Must be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.</td>
 
286
active text. Must be freed with <code class="function">g_free()</code>.</td>
287
287
</tr>
288
288
</tbody>
289
289
</table></div>