52
52
<a name="GimpImageComboBox.synopsis"></a><h2>Synopsis</h2>
53
53
<pre class="synopsis">
54
54
<a class="link" href="GimpImageComboBox.html#GimpImageComboBox-struct" title="GimpImageComboBox">GimpImageComboBox</a>;
56
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
57
>gboolean</a> (<a class="link" href="GimpImageComboBox.html#GimpImageConstraintFunc" title="GimpImageConstraintFunc ()">*GimpImageConstraintFunc</a>) (<a
58
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
61
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
64
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
65
>GtkWidget</a>* <a class="link" href="GimpImageComboBox.html#gimp-image-combo-box-new" title="gimp_image_combo_box_new ()">gimp_image_combo_box_new</a> (<a class="link" href="GimpImageComboBox.html#GimpImageConstraintFunc" title="GimpImageConstraintFunc ()">GimpImageConstraintFunc</a> constraint,
67
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
55
gboolean (<a class="link" href="GimpImageComboBox.html#GimpImageConstraintFunc" title="GimpImageConstraintFunc ()">*GimpImageConstraintFunc</a>) (gint32 image_id,
57
GtkWidget* <a class="link" href="GimpImageComboBox.html#gimp-image-combo-box-new" title="gimp_image_combo_box_new ()">gimp_image_combo_box_new</a> (<a class="link" href="GimpImageComboBox.html#GimpImageConstraintFunc" title="GimpImageConstraintFunc ()">GimpImageConstraintFunc</a> constraint,
71
61
<div class="refsect1" lang="en">
72
62
<a name="GimpImageComboBox.object-hierarchy"></a><h2>Object Hierarchy</h2>
73
63
<pre class="synopsis">
75
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
78
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
79
>GInitiallyUnowned</a>
81
href="/usr/share/gtk-doc/html/gtk/GtkObject.html"
84
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
87
href="/usr/share/gtk-doc/html/gtk/GtkContainer.html"
90
href="/usr/share/gtk-doc/html/gtk/GtkBin.html"
93
href="/usr/share/gtk-doc/html/gtk/GtkComboBox.html"
65
+----GInitiallyUnowned
96
href="/usr/share/gtk-doc/html/libgimpwidgets/GimpIntComboBox.html"
72
href="../libgimpwidgets/GimpIntComboBox.html"
97
73
>GimpIntComboBox</a>
98
74
+----GimpImageComboBox
102
78
<a name="GimpImageComboBox.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
104
80
GimpImageComboBox implements
105
AtkImplementorIface, GtkBuildable, <a
106
href="/usr/share/gtk-doc/html/gtk/GtkCellLayout.html"
107
>GtkCellLayout</a> and <a
108
href="/usr/share/gtk-doc/html/gtk/GtkCellEditable.html"
109
>GtkCellEditable</a>.</p>
81
AtkImplementorIface, GtkBuildable, GtkCellLayout and GtkCellEditable.</p>
111
83
<div class="refsect1" lang="en">
112
84
<a name="GimpImageComboBox.description"></a><h2>Description</h2>
127
99
<div class="refsect2" lang="en">
128
100
<a name="GimpImageConstraintFunc"></a><h3>GimpImageConstraintFunc ()</h3>
129
<pre class="programlisting"><a
130
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
131
>gboolean</a> (*GimpImageConstraintFunc) (<a
132
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"
133
>gint32</a> image_id,
135
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
136
>gpointer</a> data);</pre>
101
<pre class="programlisting">gboolean (*GimpImageConstraintFunc) (gint32 image_id,
102
gpointer data);</pre>
164
130
<div class="refsect2" lang="en">
165
131
<a name="gimp-image-combo-box-new"></a><h3>gimp_image_combo_box_new ()</h3>
166
<pre class="programlisting"><a
167
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
168
>GtkWidget</a>* gimp_image_combo_box_new (<a class="link" href="GimpImageComboBox.html#GimpImageConstraintFunc" title="GimpImageConstraintFunc ()">GimpImageConstraintFunc</a> constraint,
170
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
171
>gpointer</a> data);</pre>
132
<pre class="programlisting">GtkWidget* gimp_image_combo_box_new (<a class="link" href="GimpImageComboBox.html#GimpImageConstraintFunc" title="GimpImageConstraintFunc ()">GimpImageConstraintFunc</a> constraint,
133
gpointer data);</pre>
174
href="/usr/share/gtk-doc/html/libgimpwidgets/GimpIntComboBox.html"
136
href="../libgimpwidgets/GimpIntComboBox.html"
175
137
><span class="type">GimpIntComboBox</span></a> filled with all currently opened
176
138
images. If a <em class="parameter"><code>constraint</code></em> function is specified, it is called for
177
each image and only if the function returns <a
178
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
179
><code class="literal">TRUE</code></a>, the image is
139
each image and only if the function returns <code class="literal">TRUE</code>, the image is
180
140
added to the combobox.
183
143
You should use <code class="function">gimp_int_combo_connect()</code> to initialize and connect
184
144
the combo. Use <a
185
href="/usr/share/gtk-doc/html/libgimpwidgets/GimpIntComboBox.html#gimp-int-combo-box-set-active"
145
href="../libgimpwidgets/GimpIntComboBox.html#gimp-int-combo-box-set-active"
186
146
><code class="function">gimp_int_combo_box_set_active()</code></a> to get the active
188
href="/usr/share/gtk-doc/html/libgimpwidgets/GimpIntComboBox.html#gimp-int-combo-box-get-active"
148
href="../libgimpwidgets/GimpIntComboBox.html#gimp-int-combo-box-get-active"
189
149
><code class="function">gimp_int_combo_box_get_active()</code></a> to retrieve the ID of
190
150
the selected image.</p>
198
158
<td><p><span class="term"><em class="parameter"><code>constraint</code></em> :</span></p></td>
199
<td> a <a class="link" href="GimpImageComboBox.html#GimpImageConstraintFunc" title="GimpImageConstraintFunc ()"><span class="type">GimpImageConstraintFunc</span></a> or <a
200
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
201
><code class="literal">NULL</code></a>
159
<td> a <a class="link" href="GimpImageComboBox.html#GimpImageConstraintFunc" title="GimpImageConstraintFunc ()"><span class="type">GimpImageConstraintFunc</span></a> or <code class="literal">NULL</code>
210
168
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
212
href="/usr/share/gtk-doc/html/libgimpwidgets/GimpIntComboBox.html"
170
href="../libgimpwidgets/GimpIntComboBox.html"
213
171
><span class="type">GimpIntComboBox</span></a>.