Package: gtk

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

Lambda List

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

Arguments

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

Return Value

The 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 gtk:menu-item-accel-path function with an appropriate path for the menu item, use the gtk_stock_lookup() function to look up the standard accelerator for the stock item, and if one is found, call the gtk:accel-map-add-entry function to register it.

Warning

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

See also

2024-6-27