GtkImageMenuItem: GtkImageMenuItem
Description
A menu item with an iconMethods and Functions
gtkImageMenuItemSetImage(object, image = NULL)
gtkImageMenuItemGetImage(object)
gtkImageMenuItemNew(show = TRUE)
gtkImageMenuItemNewFromStock(stock.id, accel.group, show = TRUE)
gtkImageMenuItemNewWithLabel(label, show = TRUE)
gtkImageMenuItemNewWithMnemonic(label, show = TRUE)
gtkImageMenuItemGetUseStock(object)
gtkImageMenuItemSetUseStock(object, use.stock)
gtkImageMenuItemGetAlwaysShowImage(object)
gtkImageMenuItemSetAlwaysShowImage(object, always.show)
gtkImageMenuItemSetAccelGroup(object, accel.group)
gtkImageMenuItem(label, stock.id, accel.group, show = TRUE)
Hierarchy
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBin
+----GtkItem
+----GtkMenuItem
+----GtkImageMenuItem
Detailed Description
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.Properties
accel-group
[GtkAccelGroup
: * : Write]- The Accel Group to use for stock accelerator keys
Since 2.16
always-show-image
[logical : Read / Write / Construct]- If
TRUE
, the menu item will ignore the "gtk-menu-images"
setting and always show the image, if available. Use this property if the menuitem would be useless or hard to use
without the image.
Default value: FALSE Since 2.16 image
[GtkWidget
: * : Read / Write]- Child widget to appear next to the menu text.
use-stock
[logical : Read / Write / Construct]- If
TRUE
, the label set in the menuitem is used as a
stock id to select the stock item for the item.
Default value: FALSE Since 2.16