The
gtk:menu-tool-button widget is a
gtk:tool-item that
contains a button and a small additional button with an arrow.
When clicked, the arrow button pops up a dropdown menu.
Use the
gtk:menu-tool-button-new function to create a new menu tool button and the
gtk:menu-tool-button-new-from-stock function to create
a new menu tool button containing a stock item.
GtkMenuToolButton as GtkBuildable
The
gtk:menu-tool-button implementation of the
gtk:buildable interface supports adding a menu by specifying
"menu" as the
type attribute of a
<child> element.
Example: A UI definition fragment with menus:
<object class="GtkMenuToolButton">
<child type="menu">
<object class="GtkMenu"/>
</child>
</object> Signal Details