Top | ![]() |
![]() |
![]() |
![]() |
GtkMenuToolButtonGtkMenuToolButton — A GtkToolItem containing a button with an additional dropdown menu |
A GtkMenuToolButton is a GtkToolItem that contains a button and a small additional button with an arrow. When clicked, the arrow button pops up a dropdown menu.
Use gtk_menu_tool_button_new()
to create a new
GtkMenuToolButton. Use gtk_menu_tool_button_new_from_stock()
to
create a new GtkMenuToolButton containing a stock item.
The GtkMenuToolButton implementation of the GtkBuildable interface supports adding a menu by specifying "menu" as the "type" attribute of a <child> element.
Example 26. A UI definition fragment with menus
1 2 3 4 5 |
<object class="GtkMenuToolButton"> <child type="menu"> <object class="GtkMenu"/> </child> </object> |
The toolbar widget The parent class of GtkMenuToolButton. The properties "label_widget", "label", "icon_widget", and "stock_id" on GtkToolButton determine the label and icon used on GtkMenuToolButtons. |