gtkImageMenuItemNewFromStock: gtkImageMenuItemNewFromStock

Description Usage Arguments Details Value Author(s)

View source: R/gtkFuncs.R


Creates a new GtkImageMenuItem containing the image and text from a stock item. Some stock ids have preprocessor functions like GTK_STOCK_OK and GTK_STOCK_APPLY.


gtkImageMenuItemNewFromStock(,, show = TRUE)


the name of the stock item.

the GtkAccelGroup to add the menu items accelerator to, or NULL.


If you want this menu item to have changeable accelerators, then pass in NULL for accel_group. Next call gtkMenuItemSetAccelPath with an appropriate path for the menu item, use gtkStockLookup to look up the standard accelerator for the stock item, and if one is found, call gtkAccelMapAddEntry to register it.


[GtkWidget] a new GtkImageMenuItem.


Derived by RGtkGen from GTK+ documentation

RGtk2 documentation built on May 30, 2017, 5:53 a.m.

Search within the RGtk2 package
Search all R packages, documentation and source code