ToolItem.connectCreateMenuProxy
gulong connectCreateMenuProxy(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == bool)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.tool_item.ToolItem)))
&& Parameters!T.length < 2)Connect to CreateMenuProxy signal.
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
- call [gtk.tool_item.ToolItem.setProxyMenuItem] with a null
pointer and return true to indicate that the item should not appear in the overflow menu
- call [gtk.tool_item.ToolItem.setProxyMenuItem] with a new menu
item and return true, or
- 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.
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.tool_item.ToolItem.rebuildMenu] to invalidate the cache and ensure that the toolbar rebuilds its overflow menu.
Parameters
callback | signal callback delegate or function to connect bool callback(gtk.tool_item.ToolItem toolItem) toolItem the instance the signal is connected to (optional) Returns true if the signal was handled, false if not |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID