File: classGtk_1_1ImageMenuItem.html

package info (click to toggle)
gtkmm2.4 1%3A2.20.3-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 73,860 kB
  • ctags: 20,553
  • sloc: xml: 79,575; sh: 10,120; cpp: 8,347; makefile: 290
file content (646 lines) | stat: -rw-r--r-- 43,744 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>gtkmm: Gtk::ImageMenuItem Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceGtk.html">Gtk</a>::<a class="el" href="classGtk_1_1ImageMenuItem.html">ImageMenuItem</a>
  </div>
</div>
<div class="contents">
<h1>Gtk::ImageMenuItem Class Reference<br/>
<small>
[<a class="el" href="group__Menus.html">Menu classes</a>,&#160;<a class="el" href="group__Widgets.html">Widgets</a>]</small>
</h1><!-- doxytag: class="Gtk::ImageMenuItem" --><!-- doxytag: inherits="Gtk::MenuItem" -->
<p>A menu item with an icon. <a href="#_details">More...</a></p>

<p>Inherits <a class="el" href="classGtk_1_1MenuItem.html">Gtk::MenuItem</a>.</p>
<div class="dynheader">
Collaboration diagram for Gtk::ImageMenuItem:</div>
<div class="dynsection">
<div class="center"><img src="classGtk_1_1ImageMenuItem__coll__graph.png" border="0" usemap="#Gtk_1_1ImageMenuItem_coll__map" alt="Collaboration graph"/></div>
<map name="Gtk_1_1ImageMenuItem_coll__map" id="Gtk_1_1ImageMenuItem_coll__map">
<area shape="rect" href="classGtk_1_1MenuItem.html" title="Child item for menus." alt="" coords="101,677,208,707"/><area shape="rect" href="classGtk_1_1Item.html" title="This class should be considered as a virtual base class." alt="" coords="52,581,127,611"/><area shape="rect" href="classGtk_1_1Bin.html" title="A container with just one child." alt="" coords="55,485,124,515"/><area shape="rect" href="classGtk_1_1Container.html" title="Abstract container class." alt="" coords="37,405,141,435"/><area shape="rect" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)." alt="" coords="44,325,135,355"/><area shape="rect" href="classGtk_1_1Object.html" title="Gtk::Object is the base class for all widgets, and for a few non&#45;widget objects such..." alt="" coords="5,245,93,275"/><area shape="rect" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="8,165,99,195"/><area shape="rect" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="64,85,184,115"/><area shape="rect" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Interface.html" title="Glib::Interface" alt="" coords="123,165,227,195"/><area shape="rect" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="71,5,177,35"/><area shape="rect" href="classAtk_1_1Implementor.html" title="Atk::Implementor" alt="" coords="117,245,237,275"/><area shape="rect" href="classGtk_1_1AccelKey.html" title="Defines accelerator key combinations." alt="" coords="151,581,255,611"/><area shape="rect" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html" title="Glib::ustring" alt="" coords="157,485,248,515"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classGtk_1_1ImageMenuItem-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#a39568aa4c5a246f95e667a643affe091">~ImageMenuItem</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GtkImageMenuItem*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#aace048e4175f654d494a552f68ec44aa">gobj</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#aace048e4175f654d494a552f68ec44aa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const GtkImageMenuItem*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#ab65068dfe8a44c60fcbe23114cd4b1e3">gobj</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#ab65068dfe8a44c60fcbe23114cd4b1e3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#a3d173019b9219089ba54366de8ff10cb">ImageMenuItem</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#a84b714d3ec222ecf37daa4e12afe80c4">ImageMenuItem</a> (<a class="el" href="classGtk_1_1Widget.html">Widget</a>&amp; image, const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>&amp; label, bool mnemonic=false)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#a12d35d7e9424e1ae8453aa3c0763e2fe">ImageMenuItem</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>&amp; label, bool mnemonic=false)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#ac2723ab808199e0548ea2eb243d67cbf">ImageMenuItem</a> (const <a class="el" href="classGtk_1_1StockID.html">StockID</a>&amp; id)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#a3ca4cf816ce9912f82b138d6ea2057f5">set_always_show_image</a> (bool always_show=true)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">If <code>true</code>, the menu item will ignore the <a class="el" href="classGtk_1_1Settings.html" title="Sharing settings between applications.">Gtk::Settings</a>:gtk-menu-images setting and always show the image, if available. <a href="#a3ca4cf816ce9912f82b138d6ea2057f5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#aac27d2f9d8efb2f79301a01dfc66f77d">get_always_show_image</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether the menu item will ignore the <a class="el" href="classGtk_1_1Settings.html" title="Sharing settings between applications.">Gtk::Settings</a>:gtk-menu-images setting and always show the image, if available. <a href="#aac27d2f9d8efb2f79301a01dfc66f77d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#a2383bdfc0a5db17de9495290ad372c90">set_image</a> (<a class="el" href="classGtk_1_1Widget.html">Widget</a>&amp; image)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the image of <em>image_menu_item</em> to the given widget. <a href="#a2383bdfc0a5db17de9495290ad372c90"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1Widget.html">Widget</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#af10e7a6aa352b30ddab8937dcc3e44da">get_image</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the widget that is currently set as the image of <em>image_menu_item</em>. <a href="#af10e7a6aa352b30ddab8937dcc3e44da"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classGtk_1_1Widget.html">Widget</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#a29bffe1484746dddf146ca76f88990dd">get_image</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the widget that is currently set as the image of <em>image_menu_item</em>. <a href="#a29bffe1484746dddf146ca76f88990dd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#a2271fc9d88fe6deaa01cb21d6cd13a41">set_use_stock</a> (bool use_stock=true)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">If <code>true</code>, the label set in the menuitem is used as a stock id to select the stock item for the item. <a href="#a2271fc9d88fe6deaa01cb21d6cd13a41"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#acac89d5bc3b7e4c6b04acf99693153a4">get_use_stock</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether the label set in the menuitem is used as a stock id to select the stock item for the item. <a href="#acac89d5bc3b7e4c6b04acf99693153a4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#a8d9a9b51f4f54954c944fff2ba02d9e6">set_accel_group</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a> &gt;&amp; accel_group)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Specifies an <em>accel_group</em> to add the menu items accelerator to (this only applies to stock items so a stock item must already be set, make sure to call <a class="el" href="classGtk_1_1ImageMenuItem.html#a2271fc9d88fe6deaa01cb21d6cd13a41" title="If true, the label set in the menuitem is used as a stock id to select the stock...">set_use_stock()</a> and <a class="el" href="classGtk_1_1MenuItem.html#a23d706afac024398138c7e92fb306654" title="Sets text on the menu_item label.">Gtk::MenuItem::set_label()</a> with a valid stock item first). <a href="#a8d9a9b51f4f54954c944fff2ba02d9e6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>&lt; <a class="el" href="classGtk_1_1Widget.html">Widget</a>* &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#a24cc1617aac2c8bd2b78f557cbd02556">property_image</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Child widget to appear next to the menu text. <a href="#a24cc1617aac2c8bd2b78f557cbd02556"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/>
&lt; <a class="el" href="classGtk_1_1Widget.html">Widget</a>* &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#a0e83df75317e0077d625507f7b6b5173">property_image</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Child widget to appear next to the menu text. <a href="#a0e83df75317e0077d625507f7b6b5173"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>&lt; bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#a0120bd361506b760f0b4a2795660a6d6">property_use_stock</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether to use the label text to create a stock menu item. <a href="#a0120bd361506b760f0b4a2795660a6d6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/>
&lt; bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#ac886c347e0a3ef5c1de0477fc4147325">property_use_stock</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether to use the label text to create a stock menu item. <a href="#ac886c347e0a3ef5c1de0477fc4147325"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__WriteOnly.html">Glib::PropertyProxy_WriteOnly</a><br class="typebreak"/>
&lt; <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#ae1cb8095c5ebe8324cc75e12582567af">property_accel_group</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The Accel Group to use for stock accelerator keys. <a href="#ae1cb8095c5ebe8324cc75e12582567af"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>&lt; bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#a2b028da797906b21dae31f9750681b06">property_always_show_image</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the image will always be shown. <a href="#a2b028da797906b21dae31f9750681b06"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/>
&lt; bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#a00a60ae0c9627ef62a0e2ba31fa10437">property_always_show_image</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the image will always be shown. <a href="#a00a60ae0c9627ef62a0e2ba31fa10437"></a><br/></td></tr>
<tr><td colspan="2"><h2>Related Functions</h2></td></tr>
<tr><td colspan="2"><p>(Note that these are not member functions.) </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1ImageMenuItem.html">Gtk::ImageMenuItem</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ImageMenuItem.html#a536a8665561ced9a4ecb27f127ca4036">wrap</a> (GtkImageMenuItem* object, bool take_copy=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a536a8665561ced9a4ecb27f127ca4036"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>A menu item with an icon. </p>
<p>A GtkImageMenuItem is a menu item which has an icon next to the text label. Note that the user can disable display of menu icons, so make sure to still fill in the text label. </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a39568aa4c5a246f95e667a643affe091"></a><!-- doxytag: member="Gtk::ImageMenuItem::~ImageMenuItem" ref="a39568aa4c5a246f95e667a643affe091" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gtk::ImageMenuItem::~ImageMenuItem </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a3d173019b9219089ba54366de8ff10cb"></a><!-- doxytag: member="Gtk::ImageMenuItem::ImageMenuItem" ref="a3d173019b9219089ba54366de8ff10cb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::ImageMenuItem::ImageMenuItem </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a84b714d3ec222ecf37daa4e12afe80c4"></a><!-- doxytag: member="Gtk::ImageMenuItem::ImageMenuItem" ref="a84b714d3ec222ecf37daa4e12afe80c4" args="(Widget &amp;image, const Glib::ustring &amp;label, bool mnemonic=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::ImageMenuItem::ImageMenuItem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classGtk_1_1Widget.html">Widget</a>&amp;&#160;</td>
          <td class="paramname"> <em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"> <em>label</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>mnemonic</em> = <code>false</code></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a12d35d7e9424e1ae8453aa3c0763e2fe"></a><!-- doxytag: member="Gtk::ImageMenuItem::ImageMenuItem" ref="a12d35d7e9424e1ae8453aa3c0763e2fe" args="(const Glib::ustring &amp;label, bool mnemonic=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::ImageMenuItem::ImageMenuItem </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"> <em>label</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>mnemonic</em> = <code>false</code></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ac2723ab808199e0548ea2eb243d67cbf"></a><!-- doxytag: member="Gtk::ImageMenuItem::ImageMenuItem" ref="ac2723ab808199e0548ea2eb243d67cbf" args="(const StockID &amp;id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::ImageMenuItem::ImageMenuItem </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGtk_1_1StockID.html">StockID</a>&amp;&#160;</td>
          <td class="paramname"> <em>id</em></td>
          <td>&#160;)&#160;</td>
          <td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aac27d2f9d8efb2f79301a01dfc66f77d"></a><!-- doxytag: member="Gtk::ImageMenuItem::get_always_show_image" ref="aac27d2f9d8efb2f79301a01dfc66f77d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gtk::ImageMenuItem::get_always_show_image </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns whether the menu item will ignore the <a class="el" href="classGtk_1_1Settings.html" title="Sharing settings between applications.">Gtk::Settings</a>:gtk-menu-images setting and always show the image, if available. </p>
<dl class="since_2_16"><dt><b><a class="el" href="since_2_16.html#_since_2_16000070">Since gtkmm 2.16:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the menu item will always show the image. </dd></dl>

</div>
</div>
<a class="anchor" id="a29bffe1484746dddf146ca76f88990dd"></a><!-- doxytag: member="Gtk::ImageMenuItem::get_image" ref="a29bffe1484746dddf146ca76f88990dd" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classGtk_1_1Widget.html">Widget</a>* Gtk::ImageMenuItem::get_image </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the widget that is currently set as the image of <em>image_menu_item</em>. </p>
<p>See <a class="el" href="classGtk_1_1ImageMenuItem.html#a2383bdfc0a5db17de9495290ad372c90" title="Sets the image of image_menu_item to the given widget.">set_image()</a>. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The widget set as image of <em>image_menu_item</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="af10e7a6aa352b30ddab8937dcc3e44da"></a><!-- doxytag: member="Gtk::ImageMenuItem::get_image" ref="af10e7a6aa352b30ddab8937dcc3e44da" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGtk_1_1Widget.html">Widget</a>* Gtk::ImageMenuItem::get_image </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the widget that is currently set as the image of <em>image_menu_item</em>. </p>
<p>See <a class="el" href="classGtk_1_1ImageMenuItem.html#a2383bdfc0a5db17de9495290ad372c90" title="Sets the image of image_menu_item to the given widget.">set_image()</a>. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The widget set as image of <em>image_menu_item</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="acac89d5bc3b7e4c6b04acf99693153a4"></a><!-- doxytag: member="Gtk::ImageMenuItem::get_use_stock" ref="acac89d5bc3b7e4c6b04acf99693153a4" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gtk::ImageMenuItem::get_use_stock </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Checks whether the label set in the menuitem is used as a stock id to select the stock item for the item. </p>
<dl class="since_2_16"><dt><b><a class="el" href="since_2_16.html#_since_2_16000072">Since gtkmm 2.16:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the label set in the menuitem is used as a stock id to select the stock item for the item. </dd></dl>

</div>
</div>
<a class="anchor" id="ab65068dfe8a44c60fcbe23114cd4b1e3"></a><!-- doxytag: member="Gtk::ImageMenuItem::gobj" ref="ab65068dfe8a44c60fcbe23114cd4b1e3" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const GtkImageMenuItem* Gtk::ImageMenuItem::gobj </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C GtkObject. </p>

<p>Reimplemented from <a class="el" href="classGtk_1_1MenuItem.html#a0a65458b00dcc51d4c70402aa3fb0d75">Gtk::MenuItem</a>.</p>

</div>
</div>
<a class="anchor" id="aace048e4175f654d494a552f68ec44aa"></a><!-- doxytag: member="Gtk::ImageMenuItem::gobj" ref="aace048e4175f654d494a552f68ec44aa" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GtkImageMenuItem* Gtk::ImageMenuItem::gobj </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C GtkObject. </p>

<p>Reimplemented from <a class="el" href="classGtk_1_1MenuItem.html#aa83fe08a8b6c5e36a7c464c5f2faf946">Gtk::MenuItem</a>.</p>

</div>
</div>
<a class="anchor" id="ae1cb8095c5ebe8324cc75e12582567af"></a><!-- doxytag: member="Gtk::ImageMenuItem::property_accel_group" ref="ae1cb8095c5ebe8324cc75e12582567af" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__WriteOnly.html">Glib::PropertyProxy_WriteOnly</a>&lt; <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a>&gt; &gt; Gtk::ImageMenuItem::property_accel_group </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The Accel Group to use for stock accelerator keys. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a00a60ae0c9627ef62a0e2ba31fa10437"></a><!-- doxytag: member="Gtk::ImageMenuItem::property_always_show_image" ref="a00a60ae0c9627ef62a0e2ba31fa10437" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt;bool&gt; Gtk::ImageMenuItem::property_always_show_image </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Whether the image will always be shown. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a2b028da797906b21dae31f9750681b06"></a><!-- doxytag: member="Gtk::ImageMenuItem::property_always_show_image" ref="a2b028da797906b21dae31f9750681b06" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>&lt;bool&gt; Gtk::ImageMenuItem::property_always_show_image </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Whether the image will always be shown. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a0e83df75317e0077d625507f7b6b5173"></a><!-- doxytag: member="Gtk::ImageMenuItem::property_image" ref="a0e83df75317e0077d625507f7b6b5173" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt;<a class="el" href="classGtk_1_1Widget.html">Widget</a>*&gt; Gtk::ImageMenuItem::property_image </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Child widget to appear next to the menu text. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a24cc1617aac2c8bd2b78f557cbd02556"></a><!-- doxytag: member="Gtk::ImageMenuItem::property_image" ref="a24cc1617aac2c8bd2b78f557cbd02556" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>&lt;<a class="el" href="classGtk_1_1Widget.html">Widget</a>*&gt; Gtk::ImageMenuItem::property_image </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Child widget to appear next to the menu text. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="ac886c347e0a3ef5c1de0477fc4147325"></a><!-- doxytag: member="Gtk::ImageMenuItem::property_use_stock" ref="ac886c347e0a3ef5c1de0477fc4147325" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt;bool&gt; Gtk::ImageMenuItem::property_use_stock </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Whether to use the label text to create a stock menu item. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a0120bd361506b760f0b4a2795660a6d6"></a><!-- doxytag: member="Gtk::ImageMenuItem::property_use_stock" ref="a0120bd361506b760f0b4a2795660a6d6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>&lt;bool&gt; Gtk::ImageMenuItem::property_use_stock </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Whether to use the label text to create a stock menu item. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a8d9a9b51f4f54954c944fff2ba02d9e6"></a><!-- doxytag: member="Gtk::ImageMenuItem::set_accel_group" ref="a8d9a9b51f4f54954c944fff2ba02d9e6" args="(const Glib::RefPtr&lt; AccelGroup &gt; &amp;accel_group)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::ImageMenuItem::set_accel_group </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>accel_group</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Specifies an <em>accel_group</em> to add the menu items accelerator to (this only applies to stock items so a stock item must already be set, make sure to call <a class="el" href="classGtk_1_1ImageMenuItem.html#a2271fc9d88fe6deaa01cb21d6cd13a41" title="If true, the label set in the menuitem is used as a stock id to select the stock...">set_use_stock()</a> and <a class="el" href="classGtk_1_1MenuItem.html#a23d706afac024398138c7e92fb306654" title="Sets text on the menu_item label.">Gtk::MenuItem::set_label()</a> with a valid stock item first). </p>
<p>If you want this menu item to have changeable accelerators then you shouldnt need this (see new_from_stock()).</p>
<dl class="since_2_16"><dt><b><a class="el" href="since_2_16.html#_since_2_16000073">Since gtkmm 2.16:</a></b></dt><dd></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>accel_group</em>&#160;</td><td>The <a class="el" href="classGtk_1_1AccelGroup.html" title="A Gtk::AccelGroup represents a group of keyboard accelerators, typically attached...">Gtk::AccelGroup</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a3ca4cf816ce9912f82b138d6ea2057f5"></a><!-- doxytag: member="Gtk::ImageMenuItem::set_always_show_image" ref="a3ca4cf816ce9912f82b138d6ea2057f5" args="(bool always_show=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::ImageMenuItem::set_always_show_image </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>always_show</em> = <code>true</code></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>If <code>true</code>, the menu item will ignore the <a class="el" href="classGtk_1_1Settings.html" title="Sharing settings between applications.">Gtk::Settings</a>:gtk-menu-images setting and always show the image, if available. </p>
<p>Use this property if the menuitem would be useless or hard to use without the image.</p>
<dl class="since_2_16"><dt><b><a class="el" href="since_2_16.html#_since_2_16000069">Since gtkmm 2.16:</a></b></dt><dd></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>always_show</em>&#160;</td><td><code>true</code> if the menuitem should always show the image. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2383bdfc0a5db17de9495290ad372c90"></a><!-- doxytag: member="Gtk::ImageMenuItem::set_image" ref="a2383bdfc0a5db17de9495290ad372c90" args="(Widget &amp;image)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::ImageMenuItem::set_image </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classGtk_1_1Widget.html">Widget</a>&amp;&#160;</td>
          <td class="paramname"> <em>image</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the image of <em>image_menu_item</em> to the given widget. </p>
<p>Note that it depends on the show-menu-images setting whether the image will be displayed or not. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>image</em>&#160;</td><td>A widget to set as the image for the menu item. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2271fc9d88fe6deaa01cb21d6cd13a41"></a><!-- doxytag: member="Gtk::ImageMenuItem::set_use_stock" ref="a2271fc9d88fe6deaa01cb21d6cd13a41" args="(bool use_stock=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::ImageMenuItem::set_use_stock </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>use_stock</em> = <code>true</code></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>If <code>true</code>, the label set in the menuitem is used as a stock id to select the stock item for the item. </p>
<dl class="since_2_16"><dt><b><a class="el" href="since_2_16.html#_since_2_16000071">Since gtkmm 2.16:</a></b></dt><dd></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>use_stock</em>&#160;</td><td><code>true</code> if the menuitem should use a stock item. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a536a8665561ced9a4ecb27f127ca4036"></a><!-- doxytag: member="Gtk::ImageMenuItem::wrap" ref="a536a8665561ced9a4ecb27f127ca4036" args="(GtkImageMenuItem *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGtk_1_1ImageMenuItem.html">Gtk::ImageMenuItem</a>* wrap </td>
          <td>(</td>
          <td class="paramtype">GtkImageMenuItem *&#160;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>take_copy</em> = <code>false</code></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>object</em>&#160;</td><td>The C instance. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>take_copy</em>&#160;</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>gtkmm/imagemenuitem.h</li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue May 4 13:21:53 2010 for gtkmm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>