Imported Upstream version 2.6.3
This commit is contained in:
@ -57,44 +57,102 @@
|
||||
<a name="GimpIntComboBox.synopsis"></a><h2>Synopsis</h2>
|
||||
<pre class="synopsis">
|
||||
<a class="link" href="GimpIntComboBox.html#GimpIntComboBox-struct" title="GimpIntComboBox">GimpIntComboBox</a>;
|
||||
gboolean (<a class="link" href="GimpIntComboBox.html#GimpIntSensitivityFunc" title="GimpIntSensitivityFunc ()">*GimpIntSensitivityFunc</a>) (gint value,
|
||||
gpointer data);
|
||||
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,
|
||||
gint first_value,
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
|
||||
>gboolean</a> (<a class="link" href="GimpIntComboBox.html#GimpIntSensitivityFunc" title="GimpIntSensitivityFunc ()">*GimpIntSensitivityFunc</a>) (<a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> value,
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
|
||||
>gpointer</a> data);
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
|
||||
>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
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *first_label,
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> first_value,
|
||||
...);
|
||||
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,
|
||||
gint first_value,
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
|
||||
>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
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *first_label,
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> first_value,
|
||||
va_list values);
|
||||
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,
|
||||
const gchar *labels[]);
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
|
||||
>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
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> n_values,
|
||||
const <a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *labels[]);
|
||||
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,
|
||||
...);
|
||||
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,
|
||||
...);
|
||||
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,
|
||||
gint value);
|
||||
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,
|
||||
gint *value);
|
||||
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,
|
||||
gint value,
|
||||
GCallback callback,
|
||||
gpointer data);
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
|
||||
>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,
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> value);
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
|
||||
>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,
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *value);
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"
|
||||
>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,
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> value,
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/gobject/gobject-Closures.html#GCallback"
|
||||
>GCallback</a> callback,
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
|
||||
>gpointer</a> data);
|
||||
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,
|
||||
<a class="link" href="GimpIntComboBox.html#GimpIntSensitivityFunc" title="GimpIntSensitivityFunc ()">GimpIntSensitivityFunc</a> func,
|
||||
gpointer data,
|
||||
GDestroyNotify destroy);
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
|
||||
>gpointer</a> data,
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Datasets.html#GDestroyNotify"
|
||||
>GDestroyNotify</a> destroy);
|
||||
</pre>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="GimpIntComboBox.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
||||
<pre class="synopsis">
|
||||
GObject
|
||||
+----GInitiallyUnowned
|
||||
+----GtkObject
|
||||
+----GtkWidget
|
||||
+----GtkContainer
|
||||
+----GtkBin
|
||||
+----GtkComboBox
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
|
||||
>GObject</a>
|
||||
+----<a
|
||||
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
|
||||
>GInitiallyUnowned</a>
|
||||
+----<a
|
||||
href="/usr/share/gtk-doc/html/gtk/GtkObject.html"
|
||||
>GtkObject</a>
|
||||
+----<a
|
||||
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
|
||||
>GtkWidget</a>
|
||||
+----<a
|
||||
href="/usr/share/gtk-doc/html/gtk/GtkContainer.html"
|
||||
>GtkContainer</a>
|
||||
+----<a
|
||||
href="/usr/share/gtk-doc/html/gtk/GtkBin.html"
|
||||
>GtkBin</a>
|
||||
+----<a
|
||||
href="/usr/share/gtk-doc/html/gtk/GtkComboBox.html"
|
||||
>GtkComboBox</a>
|
||||
+----GimpIntComboBox
|
||||
+----<a class="link" href="GimpEnumComboBox.html" title="GimpEnumComboBox">GimpEnumComboBox</a>
|
||||
</pre>
|
||||
@ -103,12 +161,20 @@ void <a class="link" href="GimpIntComboBox.html#gimp-int-combo-bo
|
||||
<a name="GimpIntComboBox.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
|
||||
<p>
|
||||
GimpIntComboBox implements
|
||||
AtkImplementorIface, GtkBuildable, GtkCellEditable and GtkCellLayout.</p>
|
||||
AtkImplementorIface, <a
|
||||
href="/usr/share/gtk-doc/html/gtk/gtk-gtkbuildable.html#GtkBuildable"
|
||||
>GtkBuildable</a>, <a
|
||||
href="/usr/share/gtk-doc/html/gtk/GtkCellEditable.html"
|
||||
>GtkCellEditable</a> and <a
|
||||
href="/usr/share/gtk-doc/html/gtk/GtkCellLayout.html"
|
||||
>GtkCellLayout</a>.</p>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="GimpIntComboBox.properties"></a><h2>Properties</h2>
|
||||
<pre class="synopsis">
|
||||
"<a class="link" href="GimpIntComboBox.html#GimpIntComboBox--ellipsize" title='The "ellipsize" property'>ellipsize</a>" PangoEllipsizeMode : Read / Write
|
||||
"<a class="link" href="GimpIntComboBox.html#GimpIntComboBox--ellipsize" title='The "ellipsize" property'>ellipsize</a>" <a
|
||||
href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoEllipsizeMode"
|
||||
>PangoEllipsizeMode</a> : Read / Write
|
||||
</pre>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
@ -129,8 +195,14 @@ A widget providing a popup menu of integer values (e.g. enums).
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="GimpIntSensitivityFunc"></a><h3>GimpIntSensitivityFunc ()</h3>
|
||||
<pre class="programlisting">gboolean (*GimpIntSensitivityFunc) (gint value,
|
||||
gpointer data);</pre>
|
||||
<pre class="programlisting"><a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
|
||||
>gboolean</a> (*GimpIntSensitivityFunc) (<a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> value,
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
|
||||
>gpointer</a> data);</pre>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
@ -160,12 +232,20 @@ A widget providing a popup menu of integer values (e.g. enums).
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="gimp-int-combo-box-new"></a><h3>gimp_int_combo_box_new ()</h3>
|
||||
<pre class="programlisting">GtkWidget* gimp_int_combo_box_new (const gchar *first_label,
|
||||
gint first_value,
|
||||
<pre class="programlisting"><a
|
||||
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
|
||||
>GtkWidget</a>* gimp_int_combo_box_new (const <a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *first_label,
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/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="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
|
||||
><code class="literal">NULL</code></a>
|
||||
terminated list of label/value pairs.
|
||||
</p>
|
||||
<p>
|
||||
@ -189,7 +269,9 @@ g_object_new (GIMP_TYPE_INT_COMBO_BOX, NULL).</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
|
||||
<td> a <code class="literal">NULL</code> terminated list of more label, value pairs
|
||||
<td> a <a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
|
||||
><code class="literal">NULL</code></a> terminated list of more label, value pairs
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -206,8 +288,14 @@ g_object_new (GIMP_TYPE_INT_COMBO_BOX, NULL).</p>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="gimp-int-combo-box-new-valist"></a><h3>gimp_int_combo_box_new_valist ()</h3>
|
||||
<pre class="programlisting">GtkWidget* gimp_int_combo_box_new_valist (const gchar *first_label,
|
||||
gint first_value,
|
||||
<pre class="programlisting"><a
|
||||
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
|
||||
>GtkWidget</a>* gimp_int_combo_box_new_valist (const <a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *first_label,
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> first_value,
|
||||
va_list values);</pre>
|
||||
<p>
|
||||
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 a va_list of
|
||||
@ -247,8 +335,14 @@ label/value pairs. Probably only useful for language bindings.</p>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="gimp-int-combo-box-new-array"></a><h3>gimp_int_combo_box_new_array ()</h3>
|
||||
<pre class="programlisting">GtkWidget* gimp_int_combo_box_new_array (gint n_values,
|
||||
const gchar *labels[]);</pre>
|
||||
<pre class="programlisting"><a
|
||||
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
|
||||
>GtkWidget</a>* gimp_int_combo_box_new_array (<a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> n_values,
|
||||
const <a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *labels[]);</pre>
|
||||
<p>
|
||||
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.
|
||||
The array indices are used as values.</p>
|
||||
@ -287,7 +381,9 @@ The array indices are used as values.</p>
|
||||
<p>
|
||||
This function provides a convenient way to prepend items to a
|
||||
<a class="link" 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="/usr/share/gtk-doc/html/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 class="link" href="GimpIntStore.html#GimpIntStoreColumns" title="enum GimpIntStoreColumns"><span class="type">GimpIntStoreColumns</span></a>.</p>
|
||||
@ -320,7 +416,9 @@ The column number must be taken from the enum <a class="link" href="GimpIntStore
|
||||
<p>
|
||||
This function provides a convenient way to append items to a
|
||||
<a class="link" 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="/usr/share/gtk-doc/html/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 class="link" href="GimpIntStore.html#GimpIntStoreColumns" title="enum GimpIntStoreColumns"><span class="type">GimpIntStoreColumns</span></a>.</p>
|
||||
@ -348,8 +446,12 @@ The column number must be taken from the enum <a class="link" href="GimpIntStore
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="gimp-int-combo-box-set-active"></a><h3>gimp_int_combo_box_set_active ()</h3>
|
||||
<pre class="programlisting">gboolean gimp_int_combo_box_set_active (<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
gint value);</pre>
|
||||
<pre class="programlisting"><a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
|
||||
>gboolean</a> gimp_int_combo_box_set_active (<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/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>
|
||||
@ -371,7 +473,11 @@ selected item in the <em class="parameter"><code>combo_box</code></em>.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||||
<td> <code class="literal">TRUE</code> on success or <code class="literal">FALSE</code> if there was no item for
|
||||
<td> <a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
|
||||
><code class="literal">TRUE</code></a> on success or <a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
|
||||
><code class="literal">FALSE</code></a> if there was no item for
|
||||
this value.
|
||||
|
||||
</td>
|
||||
@ -384,8 +490,12 @@ selected item in the <em class="parameter"><code>combo_box</code></em>.</p>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="gimp-int-combo-box-get-active"></a><h3>gimp_int_combo_box_get_active ()</h3>
|
||||
<pre class="programlisting">gboolean gimp_int_combo_box_get_active (<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
gint *value);</pre>
|
||||
<pre class="programlisting"><a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
|
||||
>gboolean</a> gimp_int_combo_box_get_active (<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/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>
|
||||
@ -406,7 +516,11 @@ Retrieves the value of the selected (active) item in the <em class="parameter"><
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></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="/usr/share/gtk-doc/html/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="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
|
||||
><code class="literal">FALSE</code></a> if no item was
|
||||
active.
|
||||
|
||||
</td>
|
||||
@ -419,10 +533,18 @@ Retrieves the value of the selected (active) item in the <em class="parameter"><
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="gimp-int-combo-box-connect"></a><h3>gimp_int_combo_box_connect ()</h3>
|
||||
<pre class="programlisting">gulong gimp_int_combo_box_connect (<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
gint value,
|
||||
GCallback callback,
|
||||
gpointer data);</pre>
|
||||
<pre class="programlisting"><a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"
|
||||
>gulong</a> gimp_int_combo_box_connect (<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> value,
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/gobject/gobject-Closures.html#GCallback"
|
||||
>GCallback</a> callback,
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/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 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"
|
||||
@ -432,7 +554,9 @@ signal.
|
||||
This function also calls the <em class="parameter"><code>callback</code></em> once after setting the
|
||||
initial <em class="parameter"><code>value</code></em>. This is often convenient when working with combo
|
||||
boxes that select a default active item, like for example
|
||||
<code class="function">gimp_drawable_combo_box_new()</code>. If you pass an invalid initial
|
||||
<a
|
||||
href="../libgimp/libgimp-GimpItemComboBox.html#gimp-drawable-combo-box-new"
|
||||
><code class="function">gimp_drawable_combo_box_new()</code></a>. If you pass an invalid initial
|
||||
<em class="parameter"><code>value</code></em>, the <em class="parameter"><code>callback</code></em> will be called with the default item active.</p>
|
||||
<p>
|
||||
|
||||
@ -457,12 +581,16 @@ boxes that select a default active item, like for example
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
||||
<td> a pointer passed as data to <code class="function">g_signal_connect()</code>
|
||||
<td> a pointer passed as data to <a
|
||||
href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect"
|
||||
><code class="function">g_signal_connect()</code></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></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="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect"
|
||||
><code class="function">g_signal_connect()</code></a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
@ -476,15 +604,21 @@ boxes that select a default active item, like for example
|
||||
<a name="gimp-int-combo-box-set-sensitivity"></a><h3>gimp_int_combo_box_set_sensitivity ()</h3>
|
||||
<pre class="programlisting">void gimp_int_combo_box_set_sensitivity (<a class="link" href="GimpIntComboBox.html" title="GimpIntComboBox">GimpIntComboBox</a> *combo_box,
|
||||
<a class="link" href="GimpIntComboBox.html#GimpIntSensitivityFunc" title="GimpIntSensitivityFunc ()">GimpIntSensitivityFunc</a> func,
|
||||
gpointer data,
|
||||
GDestroyNotify destroy);</pre>
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
|
||||
>gpointer</a> data,
|
||||
<a
|
||||
href="/usr/share/gtk-doc/html/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="/usr/share/gtk-doc/html/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>
|
||||
|
||||
@ -499,7 +633,9 @@ sensitivity to be updated.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></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="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
|
||||
><code class="literal">NULL</code></a> to unset
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -522,7 +658,9 @@ sensitivity to be updated.</p>
|
||||
<a name="GimpIntComboBox.property-details"></a><h2>Property Details</h2>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="GimpIntComboBox--ellipsize"></a><h3>The <code class="literal">"ellipsize"</code> property</h3>
|
||||
<pre class="programlisting"> "ellipsize" PangoEllipsizeMode : Read / Write</pre>
|
||||
<pre class="programlisting"> "ellipsize" <a
|
||||
href="/usr/share/gtk-doc/html/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