Imported Upstream version 2.6.1

This commit is contained in:
Ari Pollak
2010-08-11 01:25:55 -04:00
parent 94f5319c14
commit 0e546c590e
355 changed files with 112231 additions and 89475 deletions

View File

@ -50,36 +50,92 @@
<div class="refsynopsisdiv">
<a name="libgimpwidgets-gimpoldwidgets.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
GtkWidget* <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-int-option-menu-new" title="gimp_int_option_menu_new ()">gimp_int_option_menu_new</a> (gboolean menu_only,
GCallback menu_item_callback,
gpointer menu_item_callback_data,
gint initial,
<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a>* <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-int-option-menu-new" title="gimp_int_option_menu_new ()">gimp_int_option_menu_new</a> (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> menu_only,
<a
href="/usr/share/gtk-doc/html/gobject/gobject-Closures.html#GCallback"
>GCallback</a> menu_item_callback,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> menu_item_callback_data,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> initial,
...);
void <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-int-option-menu-set-history" title="gimp_int_option_menu_set_history ()">gimp_int_option_menu_set_history</a> (GtkOptionMenu *option_menu,
gint item_data);
gboolean (<a class="link" href="libgimpwidgets-gimpoldwidgets.html#GimpIntOptionMenuSensitivityCallback" title="GimpIntOptionMenuSensitivityCallback ()">*GimpIntOptionMenuSensitivityCallback</a>)
(gint item_data,
gpointer callback_data);
void <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-int-option-menu-set-sensitive" title="gimp_int_option_menu_set_sensitive ()">gimp_int_option_menu_set_sensitive</a> (GtkOptionMenu *option_menu,
void <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-int-option-menu-set-history" title="gimp_int_option_menu_set_history ()">gimp_int_option_menu_set_history</a> (<a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
>GtkOptionMenu</a> *option_menu,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> item_data);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> (<a class="link" href="libgimpwidgets-gimpoldwidgets.html#GimpIntOptionMenuSensitivityCallback" title="GimpIntOptionMenuSensitivityCallback ()">*GimpIntOptionMenuSensitivityCallback</a>)
(<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> item_data,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> callback_data);
void <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-int-option-menu-set-sensitive" title="gimp_int_option_menu_set_sensitive ()">gimp_int_option_menu_set_sensitive</a> (<a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
>GtkOptionMenu</a> *option_menu,
<a class="link" href="libgimpwidgets-gimpoldwidgets.html#GimpIntOptionMenuSensitivityCallback" title="GimpIntOptionMenuSensitivityCallback ()">GimpIntOptionMenuSensitivityCallback</a> callback,
gpointer callback_data);
GtkWidget* <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-new" title="gimp_option_menu_new ()">gimp_option_menu_new</a> (gboolean menu_only,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> callback_data);
<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a>* <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-new" title="gimp_option_menu_new ()">gimp_option_menu_new</a> (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> menu_only,
...);
GtkWidget* <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-new2" title="gimp_option_menu_new2 ()">gimp_option_menu_new2</a> (gboolean menu_only,
GCallback menu_item_callback,
gpointer menu_item_callback_data,
gpointer initial,
<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a>* <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-new2" title="gimp_option_menu_new2 ()">gimp_option_menu_new2</a> (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> menu_only,
<a
href="/usr/share/gtk-doc/html/gobject/gobject-Closures.html#GCallback"
>GCallback</a> menu_item_callback,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> menu_item_callback_data,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> initial,
...);
void <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-set-history" title="gimp_option_menu_set_history ()">gimp_option_menu_set_history</a> (GtkOptionMenu *option_menu,
gpointer item_data);
gboolean (<a class="link" href="libgimpwidgets-gimpoldwidgets.html#GimpOptionMenuSensitivityCallback" title="GimpOptionMenuSensitivityCallback ()">*GimpOptionMenuSensitivityCallback</a>)
(gpointer item_data,
gpointer callback_data);
void <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-set-sensitive" title="gimp_option_menu_set_sensitive ()">gimp_option_menu_set_sensitive</a> (GtkOptionMenu *option_menu,
void <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-set-history" title="gimp_option_menu_set_history ()">gimp_option_menu_set_history</a> (<a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
>GtkOptionMenu</a> *option_menu,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> item_data);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> (<a class="link" href="libgimpwidgets-gimpoldwidgets.html#GimpOptionMenuSensitivityCallback" title="GimpOptionMenuSensitivityCallback ()">*GimpOptionMenuSensitivityCallback</a>)
(<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> item_data,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> callback_data);
void <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-set-sensitive" title="gimp_option_menu_set_sensitive ()">gimp_option_menu_set_sensitive</a> (<a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
>GtkOptionMenu</a> *option_menu,
<a class="link" href="libgimpwidgets-gimpoldwidgets.html#GimpOptionMenuSensitivityCallback" title="GimpOptionMenuSensitivityCallback ()">GimpOptionMenuSensitivityCallback</a> callback,
gpointer callback_data);
void <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-menu-item-update" title="gimp_menu_item_update ()">gimp_menu_item_update</a> (GtkWidget *widget,
gpointer data);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> callback_data);
void <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-menu-item-update" title="gimp_menu_item_update ()">gimp_menu_item_update</a> (<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a> *widget,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);
</pre>
</div>
<div class="refsect1" lang="en">
@ -92,17 +148,31 @@ These functions are not defined if you #define GIMP_DISABLE_DEPRECATED.
<a name="libgimpwidgets-gimpoldwidgets.details"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="gimp-int-option-menu-new"></a><h3>gimp_int_option_menu_new ()</h3>
<pre class="programlisting">GtkWidget* gimp_int_option_menu_new (gboolean menu_only,
GCallback menu_item_callback,
gpointer menu_item_callback_data,
gint initial,
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a>* gimp_int_option_menu_new (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> menu_only,
<a
href="/usr/share/gtk-doc/html/gobject/gobject-Closures.html#GCallback"
>GCallback</a> menu_item_callback,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> menu_item_callback_data,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> initial,
...);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gimp_int_option_menu_new</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Convenience function to create a <span class="type">GtkOptionMenu</span> or a <span class="type">GtkMenu</span>. This
Convenience function to create a <a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
><span class="type">GtkOptionMenu</span></a> or a <a
href="/usr/share/gtk-doc/html/gtk/GtkMenu.html"
><span class="type">GtkMenu</span></a>. This
function does the same thing as the deprecated function
<a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-new2" title="gimp_option_menu_new2 ()"><code class="function">gimp_option_menu_new2()</code></a>, but it takes integers as <em class="parameter"><code>item_data</code></em>
instead of pointers, since that is a very common case (mapping an
@ -115,7 +185,11 @@ enum to a menu).</p>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>menu_only</code></em> :</span></p></td>
<td> <code class="literal">TRUE</code> if the function should return a <span class="type">GtkMenu</span> only.
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the function should return a <a
href="/usr/share/gtk-doc/html/gtk/GtkMenu.html"
><span class="type">GtkMenu</span></a> only.
</td>
</tr>
<tr>
@ -127,7 +201,9 @@ enum to a menu).</p>
<tr>
<td><p><span class="term"><em class="parameter"><code>menu_item_callback_data</code></em> :</span></p></td>
<td>
The data which will be passed to <code class="function">g_signal_connect()</code>.
The data which will be passed 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>
@ -137,12 +213,18 @@ enum to a menu).</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 <em class="parameter"><code>va_list</code></em> describing the menu items.
<td> A <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>-terminated <em class="parameter"><code>va_list</code></em> describing the menu items.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A <span class="type">GtkOptionMenu</span> or a <span class="type">GtkMenu</span> (depending on <em class="parameter"><code>menu_only</code></em>).
<td> A <a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
><span class="type">GtkOptionMenu</span></a> or a <a
href="/usr/share/gtk-doc/html/gtk/GtkMenu.html"
><span class="type">GtkMenu</span></a> (depending on <em class="parameter"><code>menu_only</code></em>).
</td>
</tr>
</tbody>
@ -151,15 +233,23 @@ enum to a menu).</p>
<hr>
<div class="refsect2" lang="en">
<a name="gimp-int-option-menu-set-history"></a><h3>gimp_int_option_menu_set_history ()</h3>
<pre class="programlisting">void gimp_int_option_menu_set_history (GtkOptionMenu *option_menu,
gint item_data);</pre>
<pre class="programlisting">void gimp_int_option_menu_set_history (<a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
>GtkOptionMenu</a> *option_menu,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> item_data);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gimp_int_option_menu_set_history</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Iterates over all entries in a <span class="type">GtkOptionMenu</span> and selects the one with the
matching <em class="parameter"><code>item_data</code></em>. Probably only makes sense to use with a <span class="type">GtkOptionMenu</span>
Iterates over all entries in a <a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
><span class="type">GtkOptionMenu</span></a> and selects the one with the
matching <em class="parameter"><code>item_data</code></em>. Probably only makes sense to use with a <a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
><span class="type">GtkOptionMenu</span></a>
that was created using <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-int-option-menu-new" title="gimp_int_option_menu_new ()"><code class="function">gimp_int_option_menu_new()</code></a>. This function does the
same thing as <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-set-history" title="gimp_option_menu_set_history ()"><code class="function">gimp_option_menu_set_history()</code></a>, but takes integers as
<em class="parameter"><code>item_data</code></em> instead of pointers.</p>
@ -171,7 +261,9 @@ same thing as <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-opti
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>option_menu</code></em> :</span></p></td>
<td> A <span class="type">GtkOptionMenu</span> as returned by <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-int-option-menu-new" title="gimp_int_option_menu_new ()"><code class="function">gimp_int_option_menu_new()</code></a>.
<td> A <a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
><span class="type">GtkOptionMenu</span></a> as returned by <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-int-option-menu-new" title="gimp_int_option_menu_new ()"><code class="function">gimp_int_option_menu_new()</code></a>.
</td>
</tr>
<tr>
@ -185,9 +277,15 @@ same thing as <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-opti
<hr>
<div class="refsect2" lang="en">
<a name="GimpIntOptionMenuSensitivityCallback"></a><h3>GimpIntOptionMenuSensitivityCallback ()</h3>
<pre class="programlisting">gboolean (*GimpIntOptionMenuSensitivityCallback)
(gint item_data,
gpointer callback_data);</pre>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> (*GimpIntOptionMenuSensitivityCallback)
(<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> item_data,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> callback_data);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">GimpIntOptionMenuSensitivityCallback</code> is deprecated and should not be used in newly-written code.</p>
@ -221,9 +319,13 @@ same thing as <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-opti
<hr>
<div class="refsect2" lang="en">
<a name="gimp-int-option-menu-set-sensitive"></a><h3>gimp_int_option_menu_set_sensitive ()</h3>
<pre class="programlisting">void gimp_int_option_menu_set_sensitive (GtkOptionMenu *option_menu,
<pre class="programlisting">void gimp_int_option_menu_set_sensitive (<a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
>GtkOptionMenu</a> *option_menu,
<a class="link" href="libgimpwidgets-gimpoldwidgets.html#GimpIntOptionMenuSensitivityCallback" title="GimpIntOptionMenuSensitivityCallback ()">GimpIntOptionMenuSensitivityCallback</a> callback,
gpointer callback_data);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> callback_data);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gimp_int_option_menu_set_sensitive</code> is deprecated and should not be used in newly-written code.</p>
@ -242,7 +344,9 @@ same thing as <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-opti
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>option_menu</code></em> :</span></p></td>
<td> a <span class="type">GtkOptionMenu</span> as returned by <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-new" title="gimp_option_menu_new ()"><code class="function">gimp_option_menu_new()</code></a> or
<td> a <a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
><span class="type">GtkOptionMenu</span></a> as returned by <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-new" title="gimp_option_menu_new ()"><code class="function">gimp_option_menu_new()</code></a> or
<a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-new2" title="gimp_option_menu_new2 ()"><code class="function">gimp_option_menu_new2()</code></a>.
</td>
</tr>
@ -263,14 +367,22 @@ same thing as <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-opti
<hr>
<div class="refsect2" lang="en">
<a name="gimp-option-menu-new"></a><h3>gimp_option_menu_new ()</h3>
<pre class="programlisting">GtkWidget* gimp_option_menu_new (gboolean menu_only,
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a>* gimp_option_menu_new (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> menu_only,
...);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gimp_option_menu_new</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Convenience function to create a <span class="type">GtkOptionMenu</span> or a <span class="type">GtkMenu</span>.</p>
Convenience function to create a <a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
><span class="type">GtkOptionMenu</span></a> or a <a
href="/usr/share/gtk-doc/html/gtk/GtkMenu.html"
><span class="type">GtkMenu</span></a>.</p>
<p>
</p>
@ -279,17 +391,27 @@ Convenience function to create a <span class="type">GtkOptionMenu</span> or a <s
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>menu_only</code></em> :</span></p></td>
<td> <code class="literal">TRUE</code> if the function should return a <span class="type">GtkMenu</span> only.
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the function should return a <a
href="/usr/share/gtk-doc/html/gtk/GtkMenu.html"
><span class="type">GtkMenu</span></a> only.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
<td> A <code class="literal">NULL</code>-terminated <em class="parameter"><code>va_list</code></em> describing the menu items.
<td> A <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>-terminated <em class="parameter"><code>va_list</code></em> describing the menu items.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A <span class="type">GtkOptionMenu</span> or a <span class="type">GtkMenu</span> (depending on <em class="parameter"><code>menu_only</code></em>).
<td> A <a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
><span class="type">GtkOptionMenu</span></a> or a <a
href="/usr/share/gtk-doc/html/gtk/GtkMenu.html"
><span class="type">GtkMenu</span></a> (depending on <em class="parameter"><code>menu_only</code></em>).
</td>
</tr>
</tbody>
@ -298,17 +420,31 @@ Convenience function to create a <span class="type">GtkOptionMenu</span> or a <s
<hr>
<div class="refsect2" lang="en">
<a name="gimp-option-menu-new2"></a><h3>gimp_option_menu_new2 ()</h3>
<pre class="programlisting">GtkWidget* gimp_option_menu_new2 (gboolean menu_only,
GCallback menu_item_callback,
gpointer menu_item_callback_data,
gpointer initial,
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a>* gimp_option_menu_new2 (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> menu_only,
<a
href="/usr/share/gtk-doc/html/gobject/gobject-Closures.html#GCallback"
>GCallback</a> menu_item_callback,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> menu_item_callback_data,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> initial,
...);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gimp_option_menu_new2</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Convenience function to create a <span class="type">GtkOptionMenu</span> or a <span class="type">GtkMenu</span>.</p>
Convenience function to create a <a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
><span class="type">GtkOptionMenu</span></a> or a <a
href="/usr/share/gtk-doc/html/gtk/GtkMenu.html"
><span class="type">GtkMenu</span></a>.</p>
<p>
</p>
@ -317,7 +453,11 @@ Convenience function to create a <span class="type">GtkOptionMenu</span> or a <s
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>menu_only</code></em> :</span></p></td>
<td> <code class="literal">TRUE</code> if the function should return a <span class="type">GtkMenu</span> only.
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the function should return a <a
href="/usr/share/gtk-doc/html/gtk/GtkMenu.html"
><span class="type">GtkMenu</span></a> only.
</td>
</tr>
<tr>
@ -329,7 +469,9 @@ Convenience function to create a <span class="type">GtkOptionMenu</span> or a <s
<tr>
<td><p><span class="term"><em class="parameter"><code>menu_item_callback_data</code></em> :</span></p></td>
<td>
The data which will be passed to <code class="function">g_signal_connect()</code>.
The data which will be passed 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>
@ -339,12 +481,18 @@ Convenience function to create a <span class="type">GtkOptionMenu</span> or a <s
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
<td> A <code class="literal">NULL</code>-terminated <em class="parameter"><code>va_list</code></em> describing the menu items.
<td> A <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>-terminated <em class="parameter"><code>va_list</code></em> describing the menu items.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A <span class="type">GtkOptionMenu</span> or a <span class="type">GtkMenu</span> (depending on <em class="parameter"><code>menu_only</code></em>).
<td> A <a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
><span class="type">GtkOptionMenu</span></a> or a <a
href="/usr/share/gtk-doc/html/gtk/GtkMenu.html"
><span class="type">GtkMenu</span></a> (depending on <em class="parameter"><code>menu_only</code></em>).
</td>
</tr>
</tbody>
@ -353,16 +501,24 @@ Convenience function to create a <span class="type">GtkOptionMenu</span> or a <s
<hr>
<div class="refsect2" lang="en">
<a name="gimp-option-menu-set-history"></a><h3>gimp_option_menu_set_history ()</h3>
<pre class="programlisting">void gimp_option_menu_set_history (GtkOptionMenu *option_menu,
gpointer item_data);</pre>
<pre class="programlisting">void gimp_option_menu_set_history (<a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
>GtkOptionMenu</a> *option_menu,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> item_data);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gimp_option_menu_set_history</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Iterates over all entries in a <span class="type">GtkOptionMenu</span> and selects the one
Iterates over all entries in a <a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
><span class="type">GtkOptionMenu</span></a> and selects the one
with the matching <em class="parameter"><code>item_data</code></em>. Probably only makes sense to use with
a <span class="type">GtkOptionMenu</span> that was created using <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-new" title="gimp_option_menu_new ()"><code class="function">gimp_option_menu_new()</code></a> or
a <a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
><span class="type">GtkOptionMenu</span></a> that was created using <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-new" title="gimp_option_menu_new ()"><code class="function">gimp_option_menu_new()</code></a> or
<a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-new2" title="gimp_option_menu_new2 ()"><code class="function">gimp_option_menu_new2()</code></a>.</p>
<p>
@ -372,7 +528,9 @@ a <span class="type">GtkOptionMenu</span> that was created using <a class="link"
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>option_menu</code></em> :</span></p></td>
<td> A <span class="type">GtkOptionMenu</span> as returned by <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-new" title="gimp_option_menu_new ()"><code class="function">gimp_option_menu_new()</code></a> or
<td> A <a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
><span class="type">GtkOptionMenu</span></a> as returned by <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-new" title="gimp_option_menu_new ()"><code class="function">gimp_option_menu_new()</code></a> or
<a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-new2" title="gimp_option_menu_new2 ()"><code class="function">gimp_option_menu_new2()</code></a>.
</td>
</tr>
@ -387,9 +545,15 @@ a <span class="type">GtkOptionMenu</span> that was created using <a class="link"
<hr>
<div class="refsect2" lang="en">
<a name="GimpOptionMenuSensitivityCallback"></a><h3>GimpOptionMenuSensitivityCallback ()</h3>
<pre class="programlisting">gboolean (*GimpOptionMenuSensitivityCallback)
(gpointer item_data,
gpointer callback_data);</pre>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> (*GimpOptionMenuSensitivityCallback)
(<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> item_data,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> callback_data);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">GimpOptionMenuSensitivityCallback</code> is deprecated and should not be used in newly-written code.</p>
@ -423,9 +587,13 @@ a <span class="type">GtkOptionMenu</span> that was created using <a class="link"
<hr>
<div class="refsect2" lang="en">
<a name="gimp-option-menu-set-sensitive"></a><h3>gimp_option_menu_set_sensitive ()</h3>
<pre class="programlisting">void gimp_option_menu_set_sensitive (GtkOptionMenu *option_menu,
<pre class="programlisting">void gimp_option_menu_set_sensitive (<a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
>GtkOptionMenu</a> *option_menu,
<a class="link" href="libgimpwidgets-gimpoldwidgets.html#GimpOptionMenuSensitivityCallback" title="GimpOptionMenuSensitivityCallback ()">GimpOptionMenuSensitivityCallback</a> callback,
gpointer callback_data);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> callback_data);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gimp_option_menu_set_sensitive</code> is deprecated and should not be used in newly-written code.</p>
@ -442,7 +610,9 @@ according to the return value of this function.</p>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>option_menu</code></em> :</span></p></td>
<td> a <span class="type">GtkOptionMenu</span> as returned by <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-new" title="gimp_option_menu_new ()"><code class="function">gimp_option_menu_new()</code></a> or
<td> a <a
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
><span class="type">GtkOptionMenu</span></a> as returned by <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-new" title="gimp_option_menu_new ()"><code class="function">gimp_option_menu_new()</code></a> or
<a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-new2" title="gimp_option_menu_new2 ()"><code class="function">gimp_option_menu_new2()</code></a>.
</td>
</tr>
@ -463,8 +633,12 @@ according to the return value of this function.</p>
<hr>
<div class="refsect2" lang="en">
<a name="gimp-menu-item-update"></a><h3>gimp_menu_item_update ()</h3>
<pre class="programlisting">void gimp_menu_item_update (GtkWidget *widget,
gpointer data);</pre>
<pre class="programlisting">void gimp_menu_item_update (<a
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
>GtkWidget</a> *widget,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gimp_menu_item_update</code> is deprecated and should not be used in newly-written code.</p>
@ -479,12 +653,16 @@ according to the return value of this function.</p>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
<td> A <span class="type">GtkMenuItem</span>.
<td> A <a
href="/usr/share/gtk-doc/html/gtk/GtkMenuItem.html"
><span class="type">GtkMenuItem</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td> A pointer to a <span class="type">gint</span> variable which will store the value of
<td> A pointer to a <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
><span class="type">gint</span></a> variable which will store the value of
GPOINTER_TO_INT (g_object_get_data (<em class="parameter"><code>widget</code></em>, "gimp-item-data")).
</td>
</tr>