Package: gtk

Function gtk-image-menu-item-new-from-stock

Lambda List

gtk-image-menu-item-new-from-stock (stock-id group)

Arguments

stock-id -- a string with the name of the stock item
group -- the gtk-accel-group object to add the menu items accelerator to, or nil

Return Value

A new gtk-image-menu-item widget.

Details

Creates a new image menu item containing the image and text from a stock item.

If you want this menu item to have changeable accelerators, then pass in nil for group. Next call the function gtk-menu-item-accel-path with an appropriate path for the menu item, use the function gtk_stock_lookup() to look up the standard accelerator for the stock item, and if one is found, call the function gtk-accel-map-add-entry to register it.

Warning

The function gtk-image-menu-item-new-from-stock has been deprecated since version 3.10 and should not be used in newly written code.
 

See also

2021-7-21