A GtkToolItem containing a button with an additional dropdown menu
A <gtk-menu-tool-button>
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 gtk-menu-tool-button-new
to create a new
<gtk-menu-tool-button>
. Use gtk-menu-tool-button-new-from-stock
to
create a new <gtk-menu-tool-button>
containing a stock item.
Derives from
<gtk-tool-button>
.This class defines the following slots:
menu
- The dropdown menu
<gtk-widget>
) (label mchars
) ⇒ (ret <gtk-tool-item>
)Creates a new
<gtk-menu-tool-button>
using icon-widget as icon and label as label.
- icon-widget
- a widget that will be used as icon widget, or ‘
#f
’- label
- a string that will be used as label, or ‘
#f
’- ret
- the new
<gtk-menu-tool-button>
Since 2.6
mchars
) ⇒ (ret <gtk-tool-item>
)Creates a new
<gtk-menu-tool-button>
. The new<gtk-menu-tool-button>
will contain an icon and label from the stock item indicated by stock-id.
- stock-id
- the name of a stock item
- ret
- the new
<gtk-menu-tool-button>
Since 2.6
<gtk-menu-tool-button>
) (menu <gtk-widget>
)Sets the
<gtk-menu>
that is popped up when the user clicks on the arrow. If menu is NULL, the arrow button becomes insensitive.
- button
- a
<gtk-menu-tool-button>
- menu
- the
<gtk-menu>
associated with<gtk-menu-tool-button>
Since 2.6