56
56
<a name="GimpEnumComboBox.synopsis"></a><h2>Synopsis</h2>
57
57
<pre class="synopsis">
58
58
<a class="link" href="GimpEnumComboBox.html#GimpEnumComboBox-struct" title="GimpEnumComboBox">GimpEnumComboBox</a>;
60
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
61
>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
62
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
63
>GType</a> enum_type);
65
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
66
>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);
59
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);
60
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);
67
61
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>
68
62
(<a class="link" href="GimpEnumComboBox.html" title="GimpEnumComboBox">GimpEnumComboBox</a> *combo_box,
70
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
71
>gchar</a> *stock_prefix);
63
const gchar *stock_prefix);
74
66
<div class="refsect1" lang="en">
75
67
<a name="GimpEnumComboBox.object-hierarchy"></a><h2>Object Hierarchy</h2>
76
68
<pre class="synopsis">
78
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
81
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
82
>GInitiallyUnowned</a>
84
href="/usr/share/gtk-doc/html/gtk/GtkObject.html"
87
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
90
href="/usr/share/gtk-doc/html/gtk/GtkContainer.html"
93
href="/usr/share/gtk-doc/html/gtk/GtkBin.html"
96
href="/usr/share/gtk-doc/html/gtk/GtkComboBox.html"
70
+----GInitiallyUnowned
98
76
+----<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a>
99
77
+----GimpEnumComboBox
103
81
<a name="GimpEnumComboBox.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
105
83
GimpEnumComboBox implements
106
AtkImplementorIface, GtkBuildable, <a
107
href="/usr/share/gtk-doc/html/gtk/GtkCellEditable.html"
108
>GtkCellEditable</a> and <a
109
href="/usr/share/gtk-doc/html/gtk/GtkCellLayout.html"
110
>GtkCellLayout</a>.</p>
84
AtkImplementorIface, GtkBuildable, GtkCellEditable and GtkCellLayout.</p>
112
86
<div class="refsect1" lang="en">
113
87
<a name="GimpEnumComboBox.properties"></a><h2>Properties</h2>
134
108
<div class="refsect2" lang="en">
135
109
<a name="gimp-enum-combo-box-new"></a><h3>gimp_enum_combo_box_new ()</h3>
136
<pre class="programlisting"><a
137
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
138
>GtkWidget</a>* gimp_enum_combo_box_new (<a
139
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
140
>GType</a> enum_type);</pre>
110
<pre class="programlisting">GtkWidget* gimp_enum_combo_box_new (GType enum_type);</pre>
143
href="/usr/share/gtk-doc/html/gtk/GtkComboBox.html"
144
><span class="type">GtkComboBox</span></a> readily filled with all enum values from a
112
Creates a <span class="type">GtkComboBox</span> readily filled with all enum values from a
145
113
given <em class="parameter"><code>enum_type</code></em>. The enum needs to be registered to the type
146
114
system. It should also have <a
147
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpbasetypes.html#GimpEnumDesc"
115
href="../libgimpbase/libgimpbase-gimpbasetypes.html#GimpEnumDesc"
148
116
><code class="literal">GimpEnumDesc</code></a> descriptions registered
149
117
that contain translatable value names. This is the case for the
150
118
enums used in the GIMP PDB functions.
163
131
<td><p><span class="term"><em class="parameter"><code>enum_type</code></em> :</span></p></td>
165
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
166
><span class="type">GType</span></a> of an enum.
132
<td> the <span class="type">GType</span> of an enum.
181
147
<div class="refsect2" lang="en">
182
148
<a name="gimp-enum-combo-box-new-with-model"></a><h3>gimp_enum_combo_box_new_with_model ()</h3>
183
<pre class="programlisting"><a
184
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
185
>GtkWidget</a>* gimp_enum_combo_box_new_with_model (<a class="link" href="GimpEnumStore.html" title="GimpEnumStore">GimpEnumStore</a> *enum_store);</pre>
149
<pre class="programlisting">GtkWidget* gimp_enum_combo_box_new_with_model (<a class="link" href="GimpEnumStore.html" title="GimpEnumStore">GimpEnumStore</a> *enum_store);</pre>
188
href="/usr/share/gtk-doc/html/gtk/GtkComboBox.html"
189
><span class="type">GtkComboBox</span></a> for the given <em class="parameter"><code>enum_store</code></em>.</p>
151
Creates a <span class="type">GtkComboBox</span> for the given <em class="parameter"><code>enum_store</code></em>.</p>
214
176
<a name="gimp-enum-combo-box-set-stock-prefix"></a><h3>gimp_enum_combo_box_set_stock_prefix ()</h3>
215
177
<pre class="programlisting">void gimp_enum_combo_box_set_stock_prefix
216
178
(<a class="link" href="GimpEnumComboBox.html" title="GimpEnumComboBox">GimpEnumComboBox</a> *combo_box,
218
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
219
>gchar</a> *stock_prefix);</pre>
179
const gchar *stock_prefix);</pre>
221
181
Attempts to create stock icons for all items in the <em class="parameter"><code>combo_box</code></em>. See
222
182
<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>