Imported Upstream version 2.4.0~rc1
This commit is contained in:
@ -33,22 +33,22 @@
|
||||
<th width="100%" align="center">GIMP Widgets Library Reference Manual</th>
|
||||
<td><a accesskey="n" href="GimpIntStore.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
||||
</tr>
|
||||
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2586520" class="shortcut">Top</a>
|
||||
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2575953" class="shortcut">Top</a>
|
||||
 | 
|
||||
<a href="#id2609263" class="shortcut">Description</a>
|
||||
<a href="#id2613430" class="shortcut">Description</a>
|
||||
 | 
|
||||
<a href="#id2585170" class="shortcut">Object Hierarchy</a>
|
||||
<a href="#id2556219" class="shortcut">Object Hierarchy</a>
|
||||
 | 
|
||||
<a href="#id2609198" class="shortcut">Implemented Interfaces</a>
|
||||
<a href="#id2613365" class="shortcut">Implemented Interfaces</a>
|
||||
 | 
|
||||
<a href="#id2609232" class="shortcut">Properties</a></nobr></td></tr>
|
||||
<a href="#id2613399" class="shortcut">Properties</a></nobr></td></tr>
|
||||
</table>
|
||||
<div class="refentry" lang="en">
|
||||
<a name="GimpIntComboBox"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv"><table width="100%"><tr>
|
||||
<td valign="top">
|
||||
<h2>
|
||||
<a name="id2586520"></a><span class="refentrytitle">GimpIntComboBox</span>
|
||||
<a name="id2575953"></a><span class="refentrytitle">GimpIntComboBox</span>
|
||||
</h2>
|
||||
<p>GimpIntComboBox — A widget providing a popup menu of integer values (e.g. enums).</p>
|
||||
</td>
|
||||
@ -61,85 +61,155 @@
|
||||
|
||||
|
||||
<a href="GimpIntComboBox.html#GimpIntComboBox-struct">GimpIntComboBox</a>;
|
||||
gboolean (<a href="GimpIntComboBox.html#GimpIntSensitivityFunc">*GimpIntSensitivityFunc</a>) (gint value,
|
||||
gpointer data);
|
||||
GtkWidget* <a href="GimpIntComboBox.html#gimp-int-combo-box-new">gimp_int_combo_box_new</a> (const gchar *first_label,
|
||||
gint first_value,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gboolean"
|
||||
>gboolean</a> (<a href="GimpIntComboBox.html#GimpIntSensitivityFunc">*GimpIntSensitivityFunc</a>) (<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> value,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gpointer"
|
||||
>gpointer</a> data);
|
||||
<a
|
||||
href="../gtk/GtkWidget.html"
|
||||
>GtkWidget</a>* <a href="GimpIntComboBox.html#gimp-int-combo-box-new">gimp_int_combo_box_new</a> (const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *first_label,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> first_value,
|
||||
...);
|
||||
GtkWidget* <a href="GimpIntComboBox.html#gimp-int-combo-box-new-valist">gimp_int_combo_box_new_valist</a> (const gchar *first_label,
|
||||
gint first_value,
|
||||
<a
|
||||
href="../gtk/GtkWidget.html"
|
||||
>GtkWidget</a>* <a href="GimpIntComboBox.html#gimp-int-combo-box-new-valist">gimp_int_combo_box_new_valist</a> (const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *first_label,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> first_value,
|
||||
va_list values);
|
||||
GtkWidget* <a href="GimpIntComboBox.html#gimp-int-combo-box-new-array">gimp_int_combo_box_new_array</a> (gint n_values,
|
||||
const gchar *labels[]);
|
||||
<a
|
||||
href="../gtk/GtkWidget.html"
|
||||
>GtkWidget</a>* <a href="GimpIntComboBox.html#gimp-int-combo-box-new-array">gimp_int_combo_box_new_array</a> (<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> n_values,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *labels[]);
|
||||
void <a href="GimpIntComboBox.html#gimp-int-combo-box-prepend">gimp_int_combo_box_prepend</a> (<a href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
...);
|
||||
void <a href="GimpIntComboBox.html#gimp-int-combo-box-append">gimp_int_combo_box_append</a> (<a href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
...);
|
||||
gboolean <a href="GimpIntComboBox.html#gimp-int-combo-box-set-active">gimp_int_combo_box_set_active</a> (<a href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
gint value);
|
||||
gboolean <a href="GimpIntComboBox.html#gimp-int-combo-box-get-active">gimp_int_combo_box_get_active</a> (<a href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
gint *value);
|
||||
gulong <a href="GimpIntComboBox.html#gimp-int-combo-box-connect">gimp_int_combo_box_connect</a> (<a href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
gint value,
|
||||
GCallback callback,
|
||||
gpointer data);
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gboolean"
|
||||
>gboolean</a> <a href="GimpIntComboBox.html#gimp-int-combo-box-set-active">gimp_int_combo_box_set_active</a> (<a href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> value);
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gboolean"
|
||||
>gboolean</a> <a href="GimpIntComboBox.html#gimp-int-combo-box-get-active">gimp_int_combo_box_get_active</a> (<a href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *value);
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gulong"
|
||||
>gulong</a> <a href="GimpIntComboBox.html#gimp-int-combo-box-connect">gimp_int_combo_box_connect</a> (<a href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> value,
|
||||
<a
|
||||
href="../gobject/gobject-Closures.html#GCallback"
|
||||
>GCallback</a> callback,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gpointer"
|
||||
>gpointer</a> data);
|
||||
void <a href="GimpIntComboBox.html#gimp-int-combo-box-set-sensitivity">gimp_int_combo_box_set_sensitivity</a> (<a href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
<a href="GimpIntComboBox.html#GimpIntSensitivityFunc">GimpIntSensitivityFunc</a> func,
|
||||
gpointer data,
|
||||
GDestroyNotify destroy);
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gpointer"
|
||||
>gpointer</a> data,
|
||||
<a
|
||||
href="../glib/glib-Datasets.html#GDestroyNotify"
|
||||
>GDestroyNotify</a> destroy);
|
||||
|
||||
</pre>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="id2585170"></a><h2>Object Hierarchy</h2>
|
||||
<a name="id2556219"></a><h2>Object Hierarchy</h2>
|
||||
<pre class="synopsis">
|
||||
|
||||
GObject
|
||||
+----GInitiallyUnowned
|
||||
+----GtkObject
|
||||
+----GtkWidget
|
||||
+----GtkContainer
|
||||
+----GtkBin
|
||||
+----GtkComboBox
|
||||
<a
|
||||
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
|
||||
>GObject</a>
|
||||
+----<a
|
||||
href="../gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
|
||||
>GInitiallyUnowned</a>
|
||||
+----<a
|
||||
href="../gtk/GtkObject.html"
|
||||
>GtkObject</a>
|
||||
+----<a
|
||||
href="../gtk/GtkWidget.html"
|
||||
>GtkWidget</a>
|
||||
+----<a
|
||||
href="../gtk/GtkContainer.html"
|
||||
>GtkContainer</a>
|
||||
+----<a
|
||||
href="../gtk/GtkBin.html"
|
||||
>GtkBin</a>
|
||||
+----<a
|
||||
href="../gtk/GtkComboBox.html"
|
||||
>GtkComboBox</a>
|
||||
+----GimpIntComboBox
|
||||
+----<a href="GimpEnumComboBox.html" title="GimpEnumComboBox">GimpEnumComboBox</a>
|
||||
</pre>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="id2609198"></a><h2>Implemented Interfaces</h2>
|
||||
<a name="id2613365"></a><h2>Implemented Interfaces</h2>
|
||||
<p>
|
||||
GimpIntComboBox implements
|
||||
AtkImplementorIface, GtkCellEditable and GtkCellLayout.</p>
|
||||
AtkImplementorIface, <a
|
||||
href="../gtk/GtkCellEditable.html"
|
||||
>GtkCellEditable</a> and <a
|
||||
href="../gtk/GtkCellLayout.html"
|
||||
>GtkCellLayout</a>.</p>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="id2609232"></a><h2>Properties</h2>
|
||||
<a name="id2613399"></a><h2>Properties</h2>
|
||||
<pre class="synopsis">
|
||||
|
||||
"<a href="GimpIntComboBox.html#GimpIntComboBox--ellipsize">ellipsize</a>" PangoEllipsizeMode : Read / Write
|
||||
"<a href="GimpIntComboBox.html#GimpIntComboBox--ellipsize">ellipsize</a>" <a
|
||||
href="../pango/pango-Layout-Objects.html#PangoEllipsizeMode"
|
||||
>PangoEllipsizeMode</a> : Read / Write
|
||||
</pre>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="id2609263"></a><h2>Description</h2>
|
||||
<a name="id2613430"></a><h2>Description</h2>
|
||||
<p>
|
||||
A widget providing a popup menu of integer values (e.g. enums).
|
||||
</p>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="id2609280"></a><h2>Details</h2>
|
||||
<a name="id2613446"></a><h2>Details</h2>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2609290"></a><h3>
|
||||
<a name="id2613457"></a><h3>
|
||||
<a name="GimpIntComboBox-struct"></a>GimpIntComboBox</h3>
|
||||
<a class="indexterm" name="id2609302"></a><pre class="programlisting">typedef struct _GimpIntComboBox GimpIntComboBox;</pre>
|
||||
<a class="indexterm" name="id2613469"></a><pre class="programlisting">typedef struct _GimpIntComboBox GimpIntComboBox;</pre>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2609318"></a><h3>
|
||||
<a name="id2613485"></a><h3>
|
||||
<a name="GimpIntSensitivityFunc"></a>GimpIntSensitivityFunc ()</h3>
|
||||
<a class="indexterm" name="id2609330"></a><pre class="programlisting">gboolean (*GimpIntSensitivityFunc) (gint value,
|
||||
gpointer data);</pre>
|
||||
<a class="indexterm" name="id2613496"></a><pre class="programlisting"><a
|
||||
href="../glib/glib-Basic-Types.html#gboolean"
|
||||
>gboolean</a> (*GimpIntSensitivityFunc) (<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> value,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gpointer"
|
||||
>gpointer</a> data);</pre>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
@ -168,14 +238,22 @@ A widget providing a popup menu of integer values (e.g. enums).
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2609407"></a><h3>
|
||||
<a name="id2613574"></a><h3>
|
||||
<a name="gimp-int-combo-box-new"></a>gimp_int_combo_box_new ()</h3>
|
||||
<a class="indexterm" name="id2609421"></a><pre class="programlisting">GtkWidget* gimp_int_combo_box_new (const gchar *first_label,
|
||||
gint first_value,
|
||||
<a class="indexterm" name="id2613588"></a><pre class="programlisting"><a
|
||||
href="../gtk/GtkWidget.html"
|
||||
>GtkWidget</a>* gimp_int_combo_box_new (const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *first_label,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> first_value,
|
||||
...);</pre>
|
||||
<p>
|
||||
Creates a GtkComboBox that has integer values associated with each
|
||||
item. The items to fill the combo box with are specified as a <code class="literal">NULL</code>
|
||||
item. The items to fill the combo box with are specified as a <a
|
||||
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
|
||||
><code class="literal">NULL</code></a>
|
||||
terminated list of label/value pairs.
|
||||
</p>
|
||||
<p>
|
||||
@ -199,7 +277,9 @@ g_object_new (GIMP_TYPE_INT_COMBO_BOX, NULL).</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>...</code></em> :</span></td>
|
||||
<td> a <code class="literal">NULL</code> terminated list of more label, value pairs
|
||||
<td> a <a
|
||||
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
|
||||
><code class="literal">NULL</code></a> terminated list of more label, value pairs
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -215,10 +295,16 @@ g_object_new (GIMP_TYPE_INT_COMBO_BOX, NULL).</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2610263"></a><h3>
|
||||
<a name="id2611282"></a><h3>
|
||||
<a name="gimp-int-combo-box-new-valist"></a>gimp_int_combo_box_new_valist ()</h3>
|
||||
<a class="indexterm" name="id2610278"></a><pre class="programlisting">GtkWidget* gimp_int_combo_box_new_valist (const gchar *first_label,
|
||||
gint first_value,
|
||||
<a class="indexterm" name="id2611297"></a><pre class="programlisting"><a
|
||||
href="../gtk/GtkWidget.html"
|
||||
>GtkWidget</a>* gimp_int_combo_box_new_valist (const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *first_label,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> first_value,
|
||||
va_list values);</pre>
|
||||
<p>
|
||||
A variant of <a href="GimpIntComboBox.html#gimp-int-combo-box-new"><code class="function">gimp_int_combo_box_new()</code></a> that takes a va_list of
|
||||
@ -257,10 +343,16 @@ label/value pairs. Probably only useful for language bindings.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2614206"></a><h3>
|
||||
<a name="id2616390"></a><h3>
|
||||
<a name="gimp-int-combo-box-new-array"></a>gimp_int_combo_box_new_array ()</h3>
|
||||
<a class="indexterm" name="id2614220"></a><pre class="programlisting">GtkWidget* gimp_int_combo_box_new_array (gint n_values,
|
||||
const gchar *labels[]);</pre>
|
||||
<a class="indexterm" name="id2616403"></a><pre class="programlisting"><a
|
||||
href="../gtk/GtkWidget.html"
|
||||
>GtkWidget</a>* gimp_int_combo_box_new_array (<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> n_values,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *labels[]);</pre>
|
||||
<p>
|
||||
A variant of <a href="GimpIntComboBox.html#gimp-int-combo-box-new"><code class="function">gimp_int_combo_box_new()</code></a> that takes an array of labels.
|
||||
The array indices are used as values.</p>
|
||||
@ -293,14 +385,16 @@ The array indices are used as values.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2614322"></a><h3>
|
||||
<a name="id2616505"></a><h3>
|
||||
<a name="gimp-int-combo-box-prepend"></a>gimp_int_combo_box_prepend ()</h3>
|
||||
<a class="indexterm" name="id2614335"></a><pre class="programlisting">void gimp_int_combo_box_prepend (<a href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
<a class="indexterm" name="id2616518"></a><pre class="programlisting">void gimp_int_combo_box_prepend (<a href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
...);</pre>
|
||||
<p>
|
||||
This function provides a convenient way to prepend items to a
|
||||
<a href="GimpIntComboBox.html" title="GimpIntComboBox"><span class="type">GimpIntComboBox</span></a>. It prepends a row to the <em class="parameter"><code>combo_box</code></em>'s list store
|
||||
and calls <code class="function">gtk_list_store_set()</code> for you.
|
||||
and calls <a
|
||||
href="../gtk/GtkListStore.html#gtk-list-store-set"
|
||||
><code class="function">gtk_list_store_set()</code></a> for you.
|
||||
</p>
|
||||
<p>
|
||||
The column number must be taken from the enum <a href="GimpIntStore.html#GimpIntStoreColumns"><span class="type">GimpIntStoreColumns</span></a>.</p>
|
||||
@ -327,14 +421,16 @@ The column number must be taken from the enum <a href="GimpIntStore.html#GimpInt
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2614449"></a><h3>
|
||||
<a name="id2616632"></a><h3>
|
||||
<a name="gimp-int-combo-box-append"></a>gimp_int_combo_box_append ()</h3>
|
||||
<a class="indexterm" name="id2614463"></a><pre class="programlisting">void gimp_int_combo_box_append (<a href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
<a class="indexterm" name="id2616646"></a><pre class="programlisting">void gimp_int_combo_box_append (<a href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
...);</pre>
|
||||
<p>
|
||||
This function provides a convenient way to append items to a
|
||||
<a href="GimpIntComboBox.html" title="GimpIntComboBox"><span class="type">GimpIntComboBox</span></a>. It appends a row to the <em class="parameter"><code>combo_box</code></em>'s list store
|
||||
and calls <code class="function">gtk_list_store_set()</code> for you.
|
||||
and calls <a
|
||||
href="../gtk/GtkListStore.html#gtk-list-store-set"
|
||||
><code class="function">gtk_list_store_set()</code></a> for you.
|
||||
</p>
|
||||
<p>
|
||||
The column number must be taken from the enum <a href="GimpIntStore.html#GimpIntStoreColumns"><span class="type">GimpIntStoreColumns</span></a>.</p>
|
||||
@ -361,10 +457,14 @@ The column number must be taken from the enum <a href="GimpIntStore.html#GimpInt
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2614578"></a><h3>
|
||||
<a name="id2616762"></a><h3>
|
||||
<a name="gimp-int-combo-box-set-active"></a>gimp_int_combo_box_set_active ()</h3>
|
||||
<a class="indexterm" name="id2614594"></a><pre class="programlisting">gboolean gimp_int_combo_box_set_active (<a href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
gint value);</pre>
|
||||
<a class="indexterm" name="id2616777"></a><pre class="programlisting"><a
|
||||
href="../glib/glib-Basic-Types.html#gboolean"
|
||||
>gboolean</a> gimp_int_combo_box_set_active (<a href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> value);</pre>
|
||||
<p>
|
||||
Looks up the item that belongs to the given <em class="parameter"><code>value</code></em> and makes it the
|
||||
selected item in the <em class="parameter"><code>combo_box</code></em>.</p>
|
||||
@ -386,7 +486,11 @@ selected item in the <em class="parameter"><code>combo_box</code></em>.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> <code class="literal">TRUE</code> on success or <code class="literal">FALSE</code> if there was no item for
|
||||
<td> <a
|
||||
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
|
||||
><code class="literal">TRUE</code></a> on success or <a
|
||||
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
|
||||
><code class="literal">FALSE</code></a> if there was no item for
|
||||
this value.
|
||||
|
||||
</td>
|
||||
@ -398,10 +502,14 @@ selected item in the <em class="parameter"><code>combo_box</code></em>.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2614722"></a><h3>
|
||||
<a name="id2616906"></a><h3>
|
||||
<a name="gimp-int-combo-box-get-active"></a>gimp_int_combo_box_get_active ()</h3>
|
||||
<a class="indexterm" name="id2614738"></a><pre class="programlisting">gboolean gimp_int_combo_box_get_active (<a href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
gint *value);</pre>
|
||||
<a class="indexterm" name="id2616921"></a><pre class="programlisting"><a
|
||||
href="../glib/glib-Basic-Types.html#gboolean"
|
||||
>gboolean</a> gimp_int_combo_box_get_active (<a href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *value);</pre>
|
||||
<p>
|
||||
Retrieves the value of the selected (active) item in the <em class="parameter"><code>combo_box</code></em>.</p>
|
||||
<p>
|
||||
@ -422,7 +530,11 @@ Retrieves the value of the selected (active) item in the <em class="parameter"><
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> <code class="literal">TRUE</code> if <em class="parameter"><code>value</code></em> has been set or <code class="literal">FALSE</code> if no item was
|
||||
<td> <a
|
||||
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
|
||||
><code class="literal">TRUE</code></a> if <em class="parameter"><code>value</code></em> has been set or <a
|
||||
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
|
||||
><code class="literal">FALSE</code></a> if no item was
|
||||
active.
|
||||
|
||||
</td>
|
||||
@ -434,12 +546,20 @@ Retrieves the value of the selected (active) item in the <em class="parameter"><
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2614866"></a><h3>
|
||||
<a name="id2617050"></a><h3>
|
||||
<a name="gimp-int-combo-box-connect"></a>gimp_int_combo_box_connect ()</h3>
|
||||
<a class="indexterm" name="id2614880"></a><pre class="programlisting">gulong gimp_int_combo_box_connect (<a href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
gint value,
|
||||
GCallback callback,
|
||||
gpointer data);</pre>
|
||||
<a class="indexterm" name="id2617064"></a><pre class="programlisting"><a
|
||||
href="../glib/glib-Basic-Types.html#gulong"
|
||||
>gulong</a> gimp_int_combo_box_connect (<a href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> value,
|
||||
<a
|
||||
href="../gobject/gobject-Closures.html#GCallback"
|
||||
>GCallback</a> callback,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gpointer"
|
||||
>gpointer</a> data);</pre>
|
||||
<p>
|
||||
A convenience function that sets the inital <em class="parameter"><code>value</code></em> of a
|
||||
<a href="GimpIntComboBox.html" title="GimpIntComboBox"><span class="type">GimpIntComboBox</span></a> and connects <em class="parameter"><code>callback</code></em> to the "changed"
|
||||
@ -476,12 +596,16 @@ href="../libgimp/libgimp-GimpItemComboBox.html#gimp-drawable-combo-box-new"
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>data</code></em> :</span></td>
|
||||
<td> a pointer passed as data to <code class="function">g_signal_connect()</code>
|
||||
<td> a pointer passed as data to <a
|
||||
href="../gobject/gobject-Signals.html#g-signal-connect"
|
||||
><code class="function">g_signal_connect()</code></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> the signal handler ID as returned by <code class="function">g_signal_connect()</code>
|
||||
<td> the signal handler ID as returned by <a
|
||||
href="../gobject/gobject-Signals.html#g-signal-connect"
|
||||
><code class="function">g_signal_connect()</code></a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
@ -492,19 +616,25 @@ href="../libgimp/libgimp-GimpItemComboBox.html#gimp-drawable-combo-box-new"
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2615105"></a><h3>
|
||||
<a name="id2617289"></a><h3>
|
||||
<a name="gimp-int-combo-box-set-sensitivity"></a>gimp_int_combo_box_set_sensitivity ()</h3>
|
||||
<a class="indexterm" name="id2615122"></a><pre class="programlisting">void gimp_int_combo_box_set_sensitivity (<a href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
<a class="indexterm" name="id2617306"></a><pre class="programlisting">void gimp_int_combo_box_set_sensitivity (<a href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
<a href="GimpIntComboBox.html#GimpIntSensitivityFunc">GimpIntSensitivityFunc</a> func,
|
||||
gpointer data,
|
||||
GDestroyNotify destroy);</pre>
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gpointer"
|
||||
>gpointer</a> data,
|
||||
<a
|
||||
href="../glib/glib-Datasets.html#GDestroyNotify"
|
||||
>GDestroyNotify</a> destroy);</pre>
|
||||
<p>
|
||||
Sets a function that is used to decide about the sensitivity of
|
||||
rows in the <em class="parameter"><code>combo_box</code></em>. Use this if you want to set certain rows
|
||||
insensitive.
|
||||
</p>
|
||||
<p>
|
||||
Calling <code class="function">gtk_widget_queue_draw()</code> on the <em class="parameter"><code>combo_box</code></em> will cause the
|
||||
Calling <a
|
||||
href="../gtk/GtkWidget.html#gtk-widget-queue-draw"
|
||||
><code class="function">gtk_widget_queue_draw()</code></a> on the <em class="parameter"><code>combo_box</code></em> will cause the
|
||||
sensitivity to be updated.</p>
|
||||
<p>
|
||||
|
||||
@ -519,7 +649,9 @@ sensitivity to be updated.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>func</code></em> :</span></td>
|
||||
<td> a function that returns a boolean value, or <code class="literal">NULL</code> to unset
|
||||
<td> a function that returns a boolean value, or <a
|
||||
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
|
||||
><code class="literal">NULL</code></a> to unset
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -539,11 +671,13 @@ sensitivity to be updated.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="id2615299"></a><h2>Property Details</h2>
|
||||
<a name="id2617483"></a><h2>Property Details</h2>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2615310"></a><h3>
|
||||
<a name="id2617494"></a><h3>
|
||||
<a name="GimpIntComboBox--ellipsize"></a>The "<code class="literal">ellipsize</code>" property</h3>
|
||||
<a class="indexterm" name="id2615324"></a><pre class="programlisting"> "ellipsize" PangoEllipsizeMode : Read / Write</pre>
|
||||
<a class="indexterm" name="id2617508"></a><pre class="programlisting"> "ellipsize" <a
|
||||
href="../pango/pango-Layout-Objects.html#PangoEllipsizeMode"
|
||||
>PangoEllipsizeMode</a> : Read / Write</pre>
|
||||
<p>
|
||||
Specifies the preferred place to ellipsize text in the combo-box,
|
||||
if the cell renderer does not have enough room to display the
|
||||
|
||||
Reference in New Issue
Block a user