56
56
<a name="GimpIntComboBox.synopsis"></a><h2>Synopsis</h2>
57
57
<pre class="synopsis">
58
58
<a class="link" href="GimpIntComboBox.html#GimpIntComboBox-struct" title="GimpIntComboBox">GimpIntComboBox</a>;
60
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
61
>gboolean</a> (<a class="link" href="GimpIntComboBox.html#GimpIntSensitivityFunc" title="GimpIntSensitivityFunc ()">*GimpIntSensitivityFunc</a>) (<a
62
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
65
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
68
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
69
>GtkWidget</a>* <a class="link" href="GimpIntComboBox.html#gimp-int-combo-box-new" title="gimp_int_combo_box_new ()">gimp_int_combo_box_new</a> (const <a
70
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
71
>gchar</a> *first_label,
73
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
74
>gint</a> first_value,
59
gboolean (<a class="link" href="GimpIntComboBox.html#GimpIntSensitivityFunc" title="GimpIntSensitivityFunc ()">*GimpIntSensitivityFunc</a>) (gint value,
61
GtkWidget* <a class="link" href="GimpIntComboBox.html#gimp-int-combo-box-new" title="gimp_int_combo_box_new ()">gimp_int_combo_box_new</a> (const gchar *first_label,
77
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
78
>GtkWidget</a>* <a class="link" href="GimpIntComboBox.html#gimp-int-combo-box-new-valist" title="gimp_int_combo_box_new_valist ()">gimp_int_combo_box_new_valist</a> (const <a
79
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
80
>gchar</a> *first_label,
82
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
83
>gint</a> first_value,
64
GtkWidget* <a class="link" href="GimpIntComboBox.html#gimp-int-combo-box-new-valist" title="gimp_int_combo_box_new_valist ()">gimp_int_combo_box_new_valist</a> (const gchar *first_label,
86
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
87
>GtkWidget</a>* <a class="link" href="GimpIntComboBox.html#gimp-int-combo-box-new-array" title="gimp_int_combo_box_new_array ()">gimp_int_combo_box_new_array</a> (<a
88
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
91
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
92
>gchar</a> *labels[]);
67
GtkWidget* <a class="link" href="GimpIntComboBox.html#gimp-int-combo-box-new-array" title="gimp_int_combo_box_new_array ()">gimp_int_combo_box_new_array</a> (gint n_values,
68
const gchar *labels[]);
93
69
void <a class="link" href="GimpIntComboBox.html#gimp-int-combo-box-prepend" title="gimp_int_combo_box_prepend ()">gimp_int_combo_box_prepend</a> (<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
95
71
void <a class="link" href="GimpIntComboBox.html#gimp-int-combo-box-append" title="gimp_int_combo_box_append ()">gimp_int_combo_box_append</a> (<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
98
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
99
>gboolean</a> <a class="link" href="GimpIntComboBox.html#gimp-int-combo-box-set-active" title="gimp_int_combo_box_set_active ()">gimp_int_combo_box_set_active</a> (<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
101
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
104
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
105
>gboolean</a> <a class="link" href="GimpIntComboBox.html#gimp-int-combo-box-get-active" title="gimp_int_combo_box_get_active ()">gimp_int_combo_box_get_active</a> (<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
107
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
110
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"
111
>gulong</a> <a class="link" href="GimpIntComboBox.html#gimp-int-combo-box-connect" title="gimp_int_combo_box_connect ()">gimp_int_combo_box_connect</a> (<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
113
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
116
href="/usr/share/gtk-doc/html/gobject/gobject-Closures.html#GCallback"
117
>GCallback</a> callback,
119
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
73
gboolean <a class="link" href="GimpIntComboBox.html#gimp-int-combo-box-set-active" title="gimp_int_combo_box_set_active ()">gimp_int_combo_box_set_active</a> (<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
75
gboolean <a class="link" href="GimpIntComboBox.html#gimp-int-combo-box-get-active" title="gimp_int_combo_box_get_active ()">gimp_int_combo_box_get_active</a> (<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
77
gulong <a class="link" href="GimpIntComboBox.html#gimp-int-combo-box-connect" title="gimp_int_combo_box_connect ()">gimp_int_combo_box_connect</a> (<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
121
81
void <a class="link" href="GimpIntComboBox.html#gimp-int-combo-box-set-sensitivity" title="gimp_int_combo_box_set_sensitivity ()">gimp_int_combo_box_set_sensitivity</a> (<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
122
82
<a class="link" href="GimpIntComboBox.html#GimpIntSensitivityFunc" title="GimpIntSensitivityFunc ()">GimpIntSensitivityFunc</a> func,
124
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
127
href="/usr/share/gtk-doc/html/glib/glib-Datasets.html#GDestroyNotify"
128
>GDestroyNotify</a> destroy);
84
GDestroyNotify destroy);
131
87
<div class="refsect1" lang="en">
132
88
<a name="GimpIntComboBox.object-hierarchy"></a><h2>Object Hierarchy</h2>
133
89
<pre class="synopsis">
135
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
138
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
139
>GInitiallyUnowned</a>
141
href="/usr/share/gtk-doc/html/gtk/GtkObject.html"
144
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
147
href="/usr/share/gtk-doc/html/gtk/GtkContainer.html"
150
href="/usr/share/gtk-doc/html/gtk/GtkBin.html"
153
href="/usr/share/gtk-doc/html/gtk/GtkComboBox.html"
91
+----GInitiallyUnowned
155
97
+----GimpIntComboBox
156
98
+----<a class="link" href="GimpEnumComboBox.html" title="GimpEnumComboBox">GimpEnumComboBox</a>
160
102
<a name="GimpIntComboBox.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
162
104
GimpIntComboBox implements
163
AtkImplementorIface, GtkBuildable, <a
164
href="/usr/share/gtk-doc/html/gtk/GtkCellEditable.html"
165
>GtkCellEditable</a> and <a
166
href="/usr/share/gtk-doc/html/gtk/GtkCellLayout.html"
167
>GtkCellLayout</a>.</p>
105
AtkImplementorIface, GtkBuildable, GtkCellEditable and GtkCellLayout.</p>
169
107
<div class="refsect1" lang="en">
170
108
<a name="GimpIntComboBox.properties"></a><h2>Properties</h2>
171
109
<pre class="synopsis">
172
"<a class="link" href="GimpIntComboBox.html#GimpIntComboBox--ellipsize" title='The "ellipsize" property'>ellipsize</a>" <a
173
href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoEllipsizeMode"
174
>PangoEllipsizeMode</a> : Read / Write
110
"<a class="link" href="GimpIntComboBox.html#GimpIntComboBox--ellipsize" title='The "ellipsize" property'>ellipsize</a>" PangoEllipsizeMode : Read / Write
177
113
<div class="refsect1" lang="en">
230
160
<div class="refsect2" lang="en">
231
161
<a name="gimp-int-combo-box-new"></a><h3>gimp_int_combo_box_new ()</h3>
232
<pre class="programlisting"><a
233
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
234
>GtkWidget</a>* gimp_int_combo_box_new (const <a
235
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
236
>gchar</a> *first_label,
238
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
239
>gint</a> first_value,
162
<pre class="programlisting">GtkWidget* gimp_int_combo_box_new (const gchar *first_label,
242
166
Creates a GtkComboBox that has integer values associated with each
243
item. The items to fill the combo box with are specified as a <a
244
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
245
><code class="literal">NULL</code></a>
167
item. The items to fill the combo box with are specified as a <code class="literal">NULL</code>
246
168
terminated list of label/value pairs.
333
247
<div class="refsect2" lang="en">
334
248
<a name="gimp-int-combo-box-new-array"></a><h3>gimp_int_combo_box_new_array ()</h3>
335
<pre class="programlisting"><a
336
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
337
>GtkWidget</a>* gimp_int_combo_box_new_array (<a
338
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
341
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
342
>gchar</a> *labels[]);</pre>
249
<pre class="programlisting">GtkWidget* gimp_int_combo_box_new_array (gint n_values,
250
const gchar *labels[]);</pre>
344
252
A variant of <a class="link" href="GimpIntComboBox.html#gimp-int-combo-box-new" title="gimp_int_combo_box_new ()"><code class="function">gimp_int_combo_box_new()</code></a> that takes an array of labels.
345
253
The array indices are used as values.</p>
531
419
<div class="refsect2" lang="en">
532
420
<a name="gimp-int-combo-box-connect"></a><h3>gimp_int_combo_box_connect ()</h3>
533
<pre class="programlisting"><a
534
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"
535
>gulong</a> gimp_int_combo_box_connect (<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
537
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
540
href="/usr/share/gtk-doc/html/gobject/gobject-Closures.html#GCallback"
541
>GCallback</a> callback,
543
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
544
>gpointer</a> data);</pre>
421
<pre class="programlisting">gulong gimp_int_combo_box_connect (<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
424
gpointer data);</pre>
546
426
A convenience function that sets the inital <em class="parameter"><code>value</code></em> of a
547
427
<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox"><span class="type">GimpIntComboBox</span></a> and connects <em class="parameter"><code>callback</code></em> to the "changed"
601
475
<a name="gimp-int-combo-box-set-sensitivity"></a><h3>gimp_int_combo_box_set_sensitivity ()</h3>
602
476
<pre class="programlisting">void gimp_int_combo_box_set_sensitivity (<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
603
477
<a class="link" href="GimpIntComboBox.html#GimpIntSensitivityFunc" title="GimpIntSensitivityFunc ()">GimpIntSensitivityFunc</a> func,
605
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
608
href="/usr/share/gtk-doc/html/glib/glib-Datasets.html#GDestroyNotify"
609
>GDestroyNotify</a> destroy);</pre>
479
GDestroyNotify destroy);</pre>
611
481
Sets a function that is used to decide about the sensitivity of
612
482
rows in the <em class="parameter"><code>combo_box</code></em>. Use this if you want to set certain rows
617
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html#gtk-widget-queue-draw"
618
><code class="function">gtk_widget_queue_draw()</code></a> on the <em class="parameter"><code>combo_box</code></em> will cause the
486
Calling <code class="function">gtk_widget_queue_draw()</code> on the <em class="parameter"><code>combo_box</code></em> will cause the
619
487
sensitivity to be updated.</p>