Gtk.ToolItem::create-menu-proxy

function callback(tool_item, ):Boolean;

This signal is emitted when the toolbar needs information from @tool_item about whether the item should appear in the toolbar overflow menu. In response the tool item should either <itemizedlist> <listitem>call Gtk.ToolItem.prototype.set_proxy_menu_item with a null pointer and return true to indicate that the item should not appear in the overflow menu </listitem> <listitem> call Gtk.ToolItem.prototype.set_proxy_menu_item with a new menu item and return true, or </listitem> <listitem> return false to indicate that the signal was not handled by the item. This means that the item will not appear in the overflow menu unless a later handler installs a menu item. </listitem> </itemizedlist>

The toolbar may cache the result of this signal. When the tool item changes how it will respond to this signal it must call Gtk.ToolItem.prototype.rebuild_menu to invalidate the cache and ensure that the toolbar rebuilds its overflow menu.

tool_item

instance of Gtk.ToolItem that is emitting the signal

Returns

true if the signal was handled, false if not