8
8
<link rel="up" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
9
9
<link rel="prev" href="GtkMenuItem.html" title="GtkMenuItem">
10
10
<link rel="next" href="GtkRadioMenuItem.html" title="GtkRadioMenuItem">
11
<meta name="generator" content="GTK-Doc V1.17.1 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
51
51
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *image</code></em>);
52
52
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GtkImageMenuItem.html#gtk-image-menu-item-get-image" title="gtk_image_menu_item_get_image ()">gtk_image_menu_item_get_image</a> (<em class="parameter"><code><a class="link" href="GtkImageMenuItem.html" title="GtkImageMenuItem"><span class="type">GtkImageMenuItem</span></a> *image_menu_item</code></em>);
53
53
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GtkImageMenuItem.html#gtk-image-menu-item-new" title="gtk_image_menu_item_new ()">gtk_image_menu_item_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
54
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GtkImageMenuItem.html#gtk-image-menu-item-new-from-stock" title="gtk_image_menu_item_new_from_stock ()">gtk_image_menu_item_new_from_stock</a> (<em class="parameter"><code>const <span class="type">gchar</span> *stock_id</code></em>,
54
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GtkImageMenuItem.html#gtk-image-menu-item-new-from-stock" title="gtk_image_menu_item_new_from_stock ()">gtk_image_menu_item_new_from_stock</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *stock_id</code></em>,
55
55
<em class="parameter"><code><a class="link" href="gtk-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> *accel_group</code></em>);
56
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GtkImageMenuItem.html#gtk-image-menu-item-new-with-label" title="gtk_image_menu_item_new_with_label ()">gtk_image_menu_item_new_with_label</a> (<em class="parameter"><code>const <span class="type">gchar</span> *label</code></em>);
56
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GtkImageMenuItem.html#gtk-image-menu-item-new-with-label" title="gtk_image_menu_item_new_with_label ()">gtk_image_menu_item_new_with_label</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *label</code></em>);
57
57
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GtkImageMenuItem.html#gtk-image-menu-item-new-with-mnemonic" title="gtk_image_menu_item_new_with_mnemonic ()">gtk_image_menu_item_new_with_mnemonic</a>
58
(<em class="parameter"><code>const <span class="type">gchar</span> *label</code></em>);
59
<span class="returnvalue">gboolean</span> <a class="link" href="GtkImageMenuItem.html#gtk-image-menu-item-get-use-stock" title="gtk_image_menu_item_get_use_stock ()">gtk_image_menu_item_get_use_stock</a> (<em class="parameter"><code><a class="link" href="GtkImageMenuItem.html" title="GtkImageMenuItem"><span class="type">GtkImageMenuItem</span></a> *image_menu_item</code></em>);
58
(<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *label</code></em>);
59
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GtkImageMenuItem.html#gtk-image-menu-item-get-use-stock" title="gtk_image_menu_item_get_use_stock ()">gtk_image_menu_item_get_use_stock</a> (<em class="parameter"><code><a class="link" href="GtkImageMenuItem.html" title="GtkImageMenuItem"><span class="type">GtkImageMenuItem</span></a> *image_menu_item</code></em>);
60
60
<span class="returnvalue">void</span> <a class="link" href="GtkImageMenuItem.html#gtk-image-menu-item-set-use-stock" title="gtk_image_menu_item_set_use_stock ()">gtk_image_menu_item_set_use_stock</a> (<em class="parameter"><code><a class="link" href="GtkImageMenuItem.html" title="GtkImageMenuItem"><span class="type">GtkImageMenuItem</span></a> *image_menu_item</code></em>,
61
<em class="parameter"><code><span class="type">gboolean</span> use_stock</code></em>);
62
<span class="returnvalue">gboolean</span> <a class="link" href="GtkImageMenuItem.html#gtk-image-menu-item-get-always-show-image" title="gtk_image_menu_item_get_always_show_image ()">gtk_image_menu_item_get_always_show_image</a>
61
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_stock</code></em>);
62
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GtkImageMenuItem.html#gtk-image-menu-item-get-always-show-image" title="gtk_image_menu_item_get_always_show_image ()">gtk_image_menu_item_get_always_show_image</a>
63
63
(<em class="parameter"><code><a class="link" href="GtkImageMenuItem.html" title="GtkImageMenuItem"><span class="type">GtkImageMenuItem</span></a> *image_menu_item</code></em>);
64
64
<span class="returnvalue">void</span> <a class="link" href="GtkImageMenuItem.html#gtk-image-menu-item-set-always-show-image" title="gtk_image_menu_item_set_always_show_image ()">gtk_image_menu_item_set_always_show_image</a>
65
65
(<em class="parameter"><code><a class="link" href="GtkImageMenuItem.html" title="GtkImageMenuItem"><span class="type">GtkImageMenuItem</span></a> *image_menu_item</code></em>,
66
<em class="parameter"><code><span class="type">gboolean</span> always_show</code></em>);
66
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> always_show</code></em>);
67
67
<span class="returnvalue">void</span> <a class="link" href="GtkImageMenuItem.html#gtk-image-menu-item-set-accel-group" title="gtk_image_menu_item_set_accel_group ()">gtk_image_menu_item_set_accel_group</a> (<em class="parameter"><code><a class="link" href="GtkImageMenuItem.html" title="GtkImageMenuItem"><span class="type">GtkImageMenuItem</span></a> *image_menu_item</code></em>,
68
68
<em class="parameter"><code><a class="link" href="gtk-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> *accel_group</code></em>);
71
71
<div class="refsect1">
72
72
<a name="GtkImageMenuItem.object-hierarchy"></a><h2>Object Hierarchy</h2>
73
73
<pre class="synopsis">
75
+----GInitiallyUnowned
74
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
75
+----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
76
76
+----<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
77
77
+----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
78
78
+----<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
92
92
<a name="GtkImageMenuItem.properties"></a><h2>Properties</h2>
93
93
<pre class="synopsis">
94
94
"<a class="link" href="GtkImageMenuItem.html#GtkImageMenuItem--accel-group" title='The "accel-group" property'>accel-group</a>" <a class="link" href="gtk-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a>* : Write
95
"<a class="link" href="GtkImageMenuItem.html#GtkImageMenuItem--always-show-image" title='The "always-show-image" property'>always-show-image</a>" <span class="type">gboolean</span> : Read / Write / Construct
95
"<a class="link" href="GtkImageMenuItem.html#GtkImageMenuItem--always-show-image" title='The "always-show-image" property'>always-show-image</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write / Construct
96
96
"<a class="link" href="GtkImageMenuItem.html#GtkImageMenuItem--image" title='The "image" property'>image</a>" <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>* : Read / Write
97
"<a class="link" href="GtkImageMenuItem.html#GtkImageMenuItem--use-stock" title='The "use-stock" property'>use-stock</a>" <span class="type">gboolean</span> : Read / Write / Construct
97
"<a class="link" href="GtkImageMenuItem.html#GtkImageMenuItem--use-stock" title='The "use-stock" property'>use-stock</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write / Construct
100
100
<div class="refsect1">
183
183
<div class="refsect2">
184
184
<a name="gtk-image-menu-item-new-from-stock"></a><h3>gtk_image_menu_item_new_from_stock ()</h3>
185
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * gtk_image_menu_item_new_from_stock (<em class="parameter"><code>const <span class="type">gchar</span> *stock_id</code></em>,
185
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * gtk_image_menu_item_new_from_stock (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *stock_id</code></em>,
186
186
<em class="parameter"><code><a class="link" href="gtk-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> *accel_group</code></em>);</pre>
188
188
Creates a new <a class="link" href="GtkImageMenuItem.html" title="GtkImageMenuItem"><span class="type">GtkImageMenuItem</span></a> containing the image and text from a
193
193
If you want this menu item to have changeable accelerators, then pass in
194
<a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> for accel_group. Next call <a class="link" href="GtkMenuItem.html#gtk-menu-item-set-accel-path" title="gtk_menu_item_set_accel_path ()"><code class="function">gtk_menu_item_set_accel_path()</code></a> with an
194
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for accel_group. Next call <a class="link" href="GtkMenuItem.html#gtk-menu-item-set-accel-path" title="gtk_menu_item_set_accel_path ()"><code class="function">gtk_menu_item_set_accel_path()</code></a> with an
195
195
appropriate path for the menu item, use <a class="link" href="gtk-Stock-Items.html#gtk-stock-lookup" title="gtk_stock_lookup ()"><code class="function">gtk_stock_lookup()</code></a> to look up the
196
196
standard accelerator for the stock item, and if one is found, call
197
197
<a class="link" href="gtk-Accelerator-Maps.html#gtk-accel-map-add-entry" title="gtk_accel_map_add_entry ()"><code class="function">gtk_accel_map_add_entry()</code></a> to register it.
207
207
<td><p><span class="term"><em class="parameter"><code>accel_group</code></em> :</span></p></td>
208
208
<td>the <a class="link" href="gtk-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> to add the menu items
209
accelerator to, or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
209
accelerator to, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
220
220
<div class="refsect2">
221
221
<a name="gtk-image-menu-item-new-with-label"></a><h3>gtk_image_menu_item_new_with_label ()</h3>
222
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * gtk_image_menu_item_new_with_label (<em class="parameter"><code>const <span class="type">gchar</span> *label</code></em>);</pre>
222
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * gtk_image_menu_item_new_with_label (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *label</code></em>);</pre>
224
224
Creates a new <a class="link" href="GtkImageMenuItem.html" title="GtkImageMenuItem"><span class="type">GtkImageMenuItem</span></a> containing a label.
241
241
<div class="refsect2">
242
242
<a name="gtk-image-menu-item-new-with-mnemonic"></a><h3>gtk_image_menu_item_new_with_mnemonic ()</h3>
243
243
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * gtk_image_menu_item_new_with_mnemonic
244
(<em class="parameter"><code>const <span class="type">gchar</span> *label</code></em>);</pre>
244
(<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *label</code></em>);</pre>
246
246
Creates a new <a class="link" href="GtkImageMenuItem.html" title="GtkImageMenuItem"><span class="type">GtkImageMenuItem</span></a> containing a label. The label
247
247
will be created using <a class="link" href="GtkLabel.html#gtk-label-new-with-mnemonic" title="gtk_label_new_with_mnemonic ()"><code class="function">gtk_label_new_with_mnemonic()</code></a>, so underscores
267
267
<div class="refsect2">
268
268
<a name="gtk-image-menu-item-get-use-stock"></a><h3>gtk_image_menu_item_get_use_stock ()</h3>
269
<pre class="programlisting"><span class="returnvalue">gboolean</span> gtk_image_menu_item_get_use_stock (<em class="parameter"><code><a class="link" href="GtkImageMenuItem.html" title="GtkImageMenuItem"><span class="type">GtkImageMenuItem</span></a> *image_menu_item</code></em>);</pre>
269
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_image_menu_item_get_use_stock (<em class="parameter"><code><a class="link" href="GtkImageMenuItem.html" title="GtkImageMenuItem"><span class="type">GtkImageMenuItem</span></a> *image_menu_item</code></em>);</pre>
271
271
Checks whether the label set in the menuitem is used as a
272
272
stock id to select the stock item for the item.
293
293
<div class="refsect2">
294
294
<a name="gtk-image-menu-item-set-use-stock"></a><h3>gtk_image_menu_item_set_use_stock ()</h3>
295
295
<pre class="programlisting"><span class="returnvalue">void</span> gtk_image_menu_item_set_use_stock (<em class="parameter"><code><a class="link" href="GtkImageMenuItem.html" title="GtkImageMenuItem"><span class="type">GtkImageMenuItem</span></a> *image_menu_item</code></em>,
296
<em class="parameter"><code><span class="type">gboolean</span> use_stock</code></em>);</pre>
296
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_stock</code></em>);</pre>
298
If <code class="literal">TRUE</code>, the label set in the menuitem is used as a
298
If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the label set in the menuitem is used as a
299
299
stock id to select the stock item for the item.
301
301
<div class="variablelist"><table border="0">
319
319
<div class="refsect2">
320
320
<a name="gtk-image-menu-item-get-always-show-image"></a><h3>gtk_image_menu_item_get_always_show_image ()</h3>
321
<pre class="programlisting"><span class="returnvalue">gboolean</span> gtk_image_menu_item_get_always_show_image
321
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_image_menu_item_get_always_show_image
322
322
(<em class="parameter"><code><a class="link" href="GtkImageMenuItem.html" title="GtkImageMenuItem"><span class="type">GtkImageMenuItem</span></a> *image_menu_item</code></em>);</pre>
324
324
Returns whether the menu item will ignore the <a class="link" href="GtkSettings.html#GtkSettings--gtk-menu-images" title='The "gtk-menu-images" property'><span class="type">"gtk-menu-images"</span></a>
346
346
<a name="gtk-image-menu-item-set-always-show-image"></a><h3>gtk_image_menu_item_set_always_show_image ()</h3>
347
347
<pre class="programlisting"><span class="returnvalue">void</span> gtk_image_menu_item_set_always_show_image
348
348
(<em class="parameter"><code><a class="link" href="GtkImageMenuItem.html" title="GtkImageMenuItem"><span class="type">GtkImageMenuItem</span></a> *image_menu_item</code></em>,
349
<em class="parameter"><code><span class="type">gboolean</span> always_show</code></em>);</pre>
349
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> always_show</code></em>);</pre>
351
If <code class="literal">TRUE</code>, the menu item will ignore the <a class="link" href="GtkSettings.html#GtkSettings--gtk-menu-images" title='The "gtk-menu-images" property'><span class="type">"gtk-menu-images"</span></a>
351
If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the menu item will ignore the <a class="link" href="GtkSettings.html#GtkSettings--gtk-menu-images" title='The "gtk-menu-images" property'><span class="type">"gtk-menu-images"</span></a>
352
352
setting and always show the image, if available.
419
419
<div class="refsect2">
420
420
<a name="GtkImageMenuItem--always-show-image"></a><h3>The <code class="literal">"always-show-image"</code> property</h3>
421
<pre class="programlisting"> "always-show-image" <span class="type">gboolean</span> : Read / Write / Construct</pre>
421
<pre class="programlisting"> "always-show-image" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write / Construct</pre>
423
If <code class="literal">TRUE</code>, the menu item will ignore the <a class="link" href="GtkSettings.html#GtkSettings--gtk-menu-images" title='The "gtk-menu-images" property'><span class="type">"gtk-menu-images"</span></a>
423
If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the menu item will ignore the <a class="link" href="GtkSettings.html#GtkSettings--gtk-menu-images" title='The "gtk-menu-images" property'><span class="type">"gtk-menu-images"</span></a>
424
424
setting and always show the image, if available.
440
440
<div class="refsect2">
441
441
<a name="GtkImageMenuItem--use-stock"></a><h3>The <code class="literal">"use-stock"</code> property</h3>
442
<pre class="programlisting"> "use-stock" <span class="type">gboolean</span> : Read / Write / Construct</pre>
442
<pre class="programlisting"> "use-stock" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write / Construct</pre>
444
If <code class="literal">TRUE</code>, the label set in the menuitem is used as a
444
If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the label set in the menuitem is used as a
445
445
stock id to select the stock item for the item.
447
447
<p>Default value: FALSE</p>