Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gtkImageMenuItemNewFromStock

gtkImageMenuItemNewFromStock


Description

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.

Usage

gtkImageMenuItemNewFromStock(stock.id, accel.group, show = TRUE)

Arguments

stock.id

the name of the stock item.

accel.group

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

Details

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.

Value

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.