57
57
<a name="GimpEnumComboBox.synopsis"></a><h2>Synopsis</h2>
58
58
<pre class="synopsis">
59
59
<a class="link" href="GimpEnumComboBox.html#GimpEnumComboBox-struct" title="GimpEnumComboBox">GimpEnumComboBox</a>;
60
GtkWidget* <a class="link" href="GimpEnumComboBox.html#gimp-enum-combo-box-new" title="gimp_enum_combo_box_new ()">gimp_enum_combo_box_new</a> (GType enum_type);
61
GtkWidget* <a class="link" href="GimpEnumComboBox.html#gimp-enum-combo-box-new-with-model" title="gimp_enum_combo_box_new_with_model ()">gimp_enum_combo_box_new_with_model</a> (<a class="link" href="GimpEnumStore.html" title="GimpEnumStore">GimpEnumStore</a> *enum_store);
61
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
62
>GtkWidget</a>* <a class="link" href="GimpEnumComboBox.html#gimp-enum-combo-box-new" title="gimp_enum_combo_box_new ()">gimp_enum_combo_box_new</a> (<a
63
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
64
>GType</a> enum_type);
66
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
67
>GtkWidget</a>* <a class="link" href="GimpEnumComboBox.html#gimp-enum-combo-box-new-with-model" title="gimp_enum_combo_box_new_with_model ()">gimp_enum_combo_box_new_with_model</a> (<a class="link" href="GimpEnumStore.html" title="GimpEnumStore">GimpEnumStore</a> *enum_store);
62
68
void <a class="link" href="GimpEnumComboBox.html#gimp-enum-combo-box-set-stock-prefix" title="gimp_enum_combo_box_set_stock_prefix ()">gimp_enum_combo_box_set_stock_prefix</a>
63
69
(<a class="link" href="GimpEnumComboBox.html" title="GimpEnumComboBox">GimpEnumComboBox</a> *combo_box,
64
const gchar *stock_prefix);
71
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
72
>gchar</a> *stock_prefix);
67
75
<div class="refsect1" lang="en">
68
76
<a name="GimpEnumComboBox.object-hierarchy"></a><h2>Object Hierarchy</h2>
69
77
<pre class="synopsis">
71
+----GInitiallyUnowned
79
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
82
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
83
>GInitiallyUnowned</a>
85
href="/usr/share/gtk-doc/html/gtk/GtkObject.html"
88
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
91
href="/usr/share/gtk-doc/html/gtk/GtkContainer.html"
94
href="/usr/share/gtk-doc/html/gtk/GtkBin.html"
97
href="/usr/share/gtk-doc/html/gtk/GtkComboBox.html"
77
99
+----<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a>
78
100
+----GimpEnumComboBox
82
104
<a name="GimpEnumComboBox.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
84
106
GimpEnumComboBox implements
85
AtkImplementorIface, GtkBuildable, GtkCellEditable and GtkCellLayout.</p>
107
AtkImplementorIface, <a
108
href="/usr/share/gtk-doc/html/gtk/gtk-gtkbuildable.html#GtkBuildable"
109
>GtkBuildable</a>, <a
110
href="/usr/share/gtk-doc/html/gtk/GtkCellEditable.html"
111
>GtkCellEditable</a> and <a
112
href="/usr/share/gtk-doc/html/gtk/GtkCellLayout.html"
113
>GtkCellLayout</a>.</p>
87
115
<div class="refsect1" lang="en">
88
116
<a name="GimpEnumComboBox.properties"></a><h2>Properties</h2>
109
137
<div class="refsect2" lang="en">
110
138
<a name="gimp-enum-combo-box-new"></a><h3>gimp_enum_combo_box_new ()</h3>
111
<pre class="programlisting">GtkWidget* gimp_enum_combo_box_new (GType enum_type);</pre>
139
<pre class="programlisting"><a
140
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
141
>GtkWidget</a>* gimp_enum_combo_box_new (<a
142
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
143
>GType</a> enum_type);</pre>
113
Creates a <span class="type">GtkComboBox</span> readily filled with all enum values from a
146
href="/usr/share/gtk-doc/html/gtk/GtkComboBox.html"
147
><span class="type">GtkComboBox</span></a> readily filled with all enum values from a
114
148
given <em class="parameter"><code>enum_type</code></em>. The enum needs to be registered to the type
115
149
system. It should also have <a
116
150
href="../libgimpbase/libgimpbase-gimpbasetypes.html#GimpEnumDesc"
132
166
<td><p><span class="term"><em class="parameter"><code>enum_type</code></em> :</span></p></td>
133
<td> the <span class="type">GType</span> of an enum.
168
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
169
><span class="type">GType</span></a> of an enum.
148
184
<div class="refsect2" lang="en">
149
185
<a name="gimp-enum-combo-box-new-with-model"></a><h3>gimp_enum_combo_box_new_with_model ()</h3>
150
<pre class="programlisting">GtkWidget* gimp_enum_combo_box_new_with_model (<a class="link" href="GimpEnumStore.html" title="GimpEnumStore">GimpEnumStore</a> *enum_store);</pre>
186
<pre class="programlisting"><a
187
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
188
>GtkWidget</a>* gimp_enum_combo_box_new_with_model (<a class="link" href="GimpEnumStore.html" title="GimpEnumStore">GimpEnumStore</a> *enum_store);</pre>
152
Creates a <span class="type">GtkComboBox</span> for the given <em class="parameter"><code>enum_store</code></em>.</p>
191
href="/usr/share/gtk-doc/html/gtk/GtkComboBox.html"
192
><span class="type">GtkComboBox</span></a> for the given <em class="parameter"><code>enum_store</code></em>.</p>
177
217
<a name="gimp-enum-combo-box-set-stock-prefix"></a><h3>gimp_enum_combo_box_set_stock_prefix ()</h3>
178
218
<pre class="programlisting">void gimp_enum_combo_box_set_stock_prefix
179
219
(<a class="link" href="GimpEnumComboBox.html" title="GimpEnumComboBox">GimpEnumComboBox</a> *combo_box,
180
const gchar *stock_prefix);</pre>
221
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
222
>gchar</a> *stock_prefix);</pre>
182
224
Attempts to create stock icons for all items in the <em class="parameter"><code>combo_box</code></em>. See
183
225
<code class="function">gimp_enum_store_set_icons()</code> to find out what to use as <em class="parameter"><code>stock_prefix</code></em>.</p>