Package: gtk

Function gtk-tool-item-proxy-menu-item

Lambda List

gtk-tool-item-proxy-menu-item (item id)

Syntax

(gtk-tool-item-proxy-menu-item item id) => menuitem
(setf (gtk-tool-item-proxy-menu-item item id) menuitem)

Arguments

item -- a gtk-tool-item widget
id -- a string used to identify the menu item
menuitem -- a gtk-menu-item to be used in the overflow menu

Details

Accessor of the proxy menu item of the tool item.

The gtk-tool-item-proxy-menu-item function gets the menu item used in the toolbar overflow menu. The (setf gtk-tool-item-proxy-menu-item) function sets the menu item used in the toolbar overflow menu.

Custom subclasses of the gtk-tool-item class should use this function to update their menu item when the gtk-tool-item changes. That the id argument must match ensures that a gtk-tool-item widget will not inadvertently change a menu item that they did not create.
 

See also

2021-10-31