49
49
<div class="refsynopsisdiv">
50
50
<a name="libgimpwidgets-gimpoldwidgets.synopsis"></a><h2>Synopsis</h2>
51
51
<pre class="synopsis">
53
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
54
>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
55
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
56
>gboolean</a> menu_only,
58
href="/usr/share/gtk-doc/html/gobject/gobject-Closures.html#GCallback"
59
>GCallback</a> menu_item_callback,
61
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
62
>gpointer</a> menu_item_callback_data,
64
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
52
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,
53
GCallback menu_item_callback,
54
gpointer menu_item_callback_data,
67
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
68
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
69
>GtkOptionMenu</a> *option_menu,
71
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
74
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
75
>gboolean</a> (<a class="link" href="libgimpwidgets-gimpoldwidgets.html#GimpIntOptionMenuSensitivityCallback" title="GimpIntOptionMenuSensitivityCallback ()">*GimpIntOptionMenuSensitivityCallback</a>)
77
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
80
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
81
>gpointer</a> callback_data);
82
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
83
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
84
>GtkOptionMenu</a> *option_menu,
57
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,
59
gboolean (<a class="link" href="libgimpwidgets-gimpoldwidgets.html#GimpIntOptionMenuSensitivityCallback" title="GimpIntOptionMenuSensitivityCallback ()">*GimpIntOptionMenuSensitivityCallback</a>)
61
gpointer callback_data);
62
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,
85
63
<a class="link" href="libgimpwidgets-gimpoldwidgets.html#GimpIntOptionMenuSensitivityCallback" title="GimpIntOptionMenuSensitivityCallback ()">GimpIntOptionMenuSensitivityCallback</a> callback,
87
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
88
>gpointer</a> callback_data);
90
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
91
>GtkWidget</a>* <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-new" title="gimp_option_menu_new ()">gimp_option_menu_new</a> (<a
92
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
93
>gboolean</a> menu_only,
96
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
97
>GtkWidget</a>* <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-option-menu-new2" title="gimp_option_menu_new2 ()">gimp_option_menu_new2</a> (<a
98
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
99
>gboolean</a> menu_only,
101
href="/usr/share/gtk-doc/html/gobject/gobject-Closures.html#GCallback"
102
>GCallback</a> menu_item_callback,
104
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
105
>gpointer</a> menu_item_callback_data,
107
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
108
>gpointer</a> initial,
110
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
111
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
112
>GtkOptionMenu</a> *option_menu,
114
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
115
>gpointer</a> item_data);
117
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
118
>gboolean</a> (<a class="link" href="libgimpwidgets-gimpoldwidgets.html#GimpOptionMenuSensitivityCallback" title="GimpOptionMenuSensitivityCallback ()">*GimpOptionMenuSensitivityCallback</a>)
120
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
121
>gpointer</a> item_data,
123
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
124
>gpointer</a> callback_data);
125
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
126
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
127
>GtkOptionMenu</a> *option_menu,
64
gpointer callback_data);
65
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,
67
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,
68
GCallback menu_item_callback,
69
gpointer menu_item_callback_data,
72
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,
74
gboolean (<a class="link" href="libgimpwidgets-gimpoldwidgets.html#GimpOptionMenuSensitivityCallback" title="GimpOptionMenuSensitivityCallback ()">*GimpOptionMenuSensitivityCallback</a>)
76
gpointer callback_data);
77
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,
128
78
<a class="link" href="libgimpwidgets-gimpoldwidgets.html#GimpOptionMenuSensitivityCallback" title="GimpOptionMenuSensitivityCallback ()">GimpOptionMenuSensitivityCallback</a> callback,
130
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
131
>gpointer</a> callback_data);
132
void <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-menu-item-update" title="gimp_menu_item_update ()">gimp_menu_item_update</a> (<a
133
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
134
>GtkWidget</a> *widget,
136
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
79
gpointer callback_data);
80
void <a class="link" href="libgimpwidgets-gimpoldwidgets.html#gimp-menu-item-update" title="gimp_menu_item_update ()">gimp_menu_item_update</a> (GtkWidget *widget,
140
84
<div class="refsect1" lang="en">
147
91
<a name="libgimpwidgets-gimpoldwidgets.details"></a><h2>Details</h2>
148
92
<div class="refsect2" lang="en">
149
93
<a name="gimp-int-option-menu-new"></a><h3>gimp_int_option_menu_new ()</h3>
150
<pre class="programlisting"><a
151
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
152
>GtkWidget</a>* gimp_int_option_menu_new (<a
153
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
154
>gboolean</a> menu_only,
156
href="/usr/share/gtk-doc/html/gobject/gobject-Closures.html#GCallback"
157
>GCallback</a> menu_item_callback,
159
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
160
>gpointer</a> menu_item_callback_data,
162
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
94
<pre class="programlisting">GtkWidget* gimp_int_option_menu_new (gboolean menu_only,
95
GCallback menu_item_callback,
96
gpointer menu_item_callback_data,
165
99
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
166
100
<h3 class="title">Warning</h3>
167
101
<p><code class="literal">gimp_int_option_menu_new</code> is deprecated and should not be used in newly-written code.</p>
170
Convenience function to create a <a
171
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
172
><span class="type">GtkOptionMenu</span></a> or a <a
173
href="/usr/share/gtk-doc/html/gtk/GtkMenu.html"
174
><span class="type">GtkMenu</span></a>. This
104
Convenience function to create a <span class="type">GtkOptionMenu</span> or a <span class="type">GtkMenu</span>. This
175
105
function does the same thing as the deprecated function
176
106
<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>
177
107
instead of pointers, since that is a very common case (mapping an
233
151
<div class="refsect2" lang="en">
234
152
<a name="gimp-int-option-menu-set-history"></a><h3>gimp_int_option_menu_set_history ()</h3>
235
<pre class="programlisting">void gimp_int_option_menu_set_history (<a
236
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
237
>GtkOptionMenu</a> *option_menu,
239
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
240
>gint</a> item_data);</pre>
153
<pre class="programlisting">void gimp_int_option_menu_set_history (GtkOptionMenu *option_menu,
154
gint item_data);</pre>
241
155
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
242
156
<h3 class="title">Warning</h3>
243
157
<p><code class="literal">gimp_int_option_menu_set_history</code> is deprecated and should not be used in newly-written code.</p>
246
Iterates over all entries in a <a
247
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
248
><span class="type">GtkOptionMenu</span></a> and selects the one with the
249
matching <em class="parameter"><code>item_data</code></em>. Probably only makes sense to use with a <a
250
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
251
><span class="type">GtkOptionMenu</span></a>
160
Iterates over all entries in a <span class="type">GtkOptionMenu</span> and selects the one with the
161
matching <em class="parameter"><code>item_data</code></em>. Probably only makes sense to use with a <span class="type">GtkOptionMenu</span>
252
162
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
253
163
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
254
164
<em class="parameter"><code>item_data</code></em> instead of pointers.</p>
319
221
<div class="refsect2" lang="en">
320
222
<a name="gimp-int-option-menu-set-sensitive"></a><h3>gimp_int_option_menu_set_sensitive ()</h3>
321
<pre class="programlisting">void gimp_int_option_menu_set_sensitive (<a
322
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
323
>GtkOptionMenu</a> *option_menu,
223
<pre class="programlisting">void gimp_int_option_menu_set_sensitive (GtkOptionMenu *option_menu,
324
224
<a class="link" href="libgimpwidgets-gimpoldwidgets.html#GimpIntOptionMenuSensitivityCallback" title="GimpIntOptionMenuSensitivityCallback ()">GimpIntOptionMenuSensitivityCallback</a> callback,
326
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
327
>gpointer</a> callback_data);</pre>
225
gpointer callback_data);</pre>
328
226
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
329
227
<h3 class="title">Warning</h3>
330
228
<p><code class="literal">gimp_int_option_menu_set_sensitive</code> is deprecated and should not be used in newly-written code.</p>
367
263
<div class="refsect2" lang="en">
368
264
<a name="gimp-option-menu-new"></a><h3>gimp_option_menu_new ()</h3>
369
<pre class="programlisting"><a
370
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
371
>GtkWidget</a>* gimp_option_menu_new (<a
372
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
373
>gboolean</a> menu_only,
265
<pre class="programlisting">GtkWidget* gimp_option_menu_new (gboolean menu_only,
375
267
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
376
268
<h3 class="title">Warning</h3>
377
269
<p><code class="literal">gimp_option_menu_new</code> is deprecated and should not be used in newly-written code.</p>
380
Convenience function to create a <a
381
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
382
><span class="type">GtkOptionMenu</span></a> or a <a
383
href="/usr/share/gtk-doc/html/gtk/GtkMenu.html"
384
><span class="type">GtkMenu</span></a>.</p>
272
Convenience function to create a <span class="type">GtkOptionMenu</span> or a <span class="type">GtkMenu</span>.</p>
392
280
<td><p><span class="term"><em class="parameter"><code>menu_only</code></em> :</span></p></td>
394
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
395
><code class="literal">TRUE</code></a> if the function should return a <a
396
href="/usr/share/gtk-doc/html/gtk/GtkMenu.html"
397
><span class="type">GtkMenu</span></a> only.
281
<td> <code class="literal">TRUE</code> if the function should return a <span class="type">GtkMenu</span> only.
401
285
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
403
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
404
><code class="literal">NULL</code></a>-terminated <em class="parameter"><code>va_list</code></em> describing the menu items.
286
<td> A <code class="literal">NULL</code>-terminated <em class="parameter"><code>va_list</code></em> describing the menu items.
408
290
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
410
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
411
><span class="type">GtkOptionMenu</span></a> or a <a
412
href="/usr/share/gtk-doc/html/gtk/GtkMenu.html"
413
><span class="type">GtkMenu</span></a> (depending on <em class="parameter"><code>menu_only</code></em>).
291
<td> A <span class="type">GtkOptionMenu</span> or a <span class="type">GtkMenu</span> (depending on <em class="parameter"><code>menu_only</code></em>).
420
298
<div class="refsect2" lang="en">
421
299
<a name="gimp-option-menu-new2"></a><h3>gimp_option_menu_new2 ()</h3>
422
<pre class="programlisting"><a
423
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
424
>GtkWidget</a>* gimp_option_menu_new2 (<a
425
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
426
>gboolean</a> menu_only,
428
href="/usr/share/gtk-doc/html/gobject/gobject-Closures.html#GCallback"
429
>GCallback</a> menu_item_callback,
431
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
432
>gpointer</a> menu_item_callback_data,
434
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
435
>gpointer</a> initial,
300
<pre class="programlisting">GtkWidget* gimp_option_menu_new2 (gboolean menu_only,
301
GCallback menu_item_callback,
302
gpointer menu_item_callback_data,
437
305
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
438
306
<h3 class="title">Warning</h3>
439
307
<p><code class="literal">gimp_option_menu_new2</code> is deprecated and should not be used in newly-written code.</p>
442
Convenience function to create a <a
443
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
444
><span class="type">GtkOptionMenu</span></a> or a <a
445
href="/usr/share/gtk-doc/html/gtk/GtkMenu.html"
446
><span class="type">GtkMenu</span></a>.</p>
310
Convenience function to create a <span class="type">GtkOptionMenu</span> or a <span class="type">GtkMenu</span>.</p>
501
353
<div class="refsect2" lang="en">
502
354
<a name="gimp-option-menu-set-history"></a><h3>gimp_option_menu_set_history ()</h3>
503
<pre class="programlisting">void gimp_option_menu_set_history (<a
504
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
505
>GtkOptionMenu</a> *option_menu,
507
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
508
>gpointer</a> item_data);</pre>
355
<pre class="programlisting">void gimp_option_menu_set_history (GtkOptionMenu *option_menu,
356
gpointer item_data);</pre>
509
357
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
510
358
<h3 class="title">Warning</h3>
511
359
<p><code class="literal">gimp_option_menu_set_history</code> is deprecated and should not be used in newly-written code.</p>
514
Iterates over all entries in a <a
515
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
516
><span class="type">GtkOptionMenu</span></a> and selects the one
362
Iterates over all entries in a <span class="type">GtkOptionMenu</span> and selects the one
517
363
with the matching <em class="parameter"><code>item_data</code></em>. Probably only makes sense to use with
519
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
520
><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
364
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
521
365
<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>
587
423
<div class="refsect2" lang="en">
588
424
<a name="gimp-option-menu-set-sensitive"></a><h3>gimp_option_menu_set_sensitive ()</h3>
589
<pre class="programlisting">void gimp_option_menu_set_sensitive (<a
590
href="/usr/share/gtk-doc/html/gtk/GtkOptionMenu.html"
591
>GtkOptionMenu</a> *option_menu,
425
<pre class="programlisting">void gimp_option_menu_set_sensitive (GtkOptionMenu *option_menu,
592
426
<a class="link" href="libgimpwidgets-gimpoldwidgets.html#GimpOptionMenuSensitivityCallback" title="GimpOptionMenuSensitivityCallback ()">GimpOptionMenuSensitivityCallback</a> callback,
594
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
595
>gpointer</a> callback_data);</pre>
427
gpointer callback_data);</pre>
596
428
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
597
429
<h3 class="title">Warning</h3>
598
430
<p><code class="literal">gimp_option_menu_set_sensitive</code> is deprecated and should not be used in newly-written code.</p>