MenuToolButton.addOnShowMenu

The ::show-menu signal is emitted before the menu is shown.

It can be used to populate the menu on demand, using Menu.toolButtonSetMenu.

Note that even if you populate the menu dynamically in this way, you must set an empty menu on the gtk.MenuToolButton beforehand, since the arrow is made insensitive if the menu is not set.

class MenuToolButton
gulong
addOnShowMenu
(
void delegate dlg
,
ConnectFlags connectFlags = cast(ConnectFlags)0
)