Sets our main struct and passes it to the parent class.
Creates a new GtkMenuToolButton. The new GtkMenuToolButton will contain an icon and label from the stock item indicated by stockID.
Creates a new gtk.MenuToolButton using icon_widget as icon and label as label.
Creates a new gtk.MenuToolButton The new gtk.MenuToolButton will contain an icon and label from the stock item indicated by stock_id.
The ::show-menu signal is emitted before the menu is shown.
Gets the GtkMenu associated with GtkMenuToolButton.
Get the main Gtk struct
the main Gtk struct as a void*
Sets the tooltip markup text to be used as tooltip for the arrow button which pops up the menu. See ToolItem.setTooltipText for setting a tooltip on the whole gtk.MenuToolButton
Sets the tooltip text to be used as tooltip for the arrow button which pops up the menu. See ToolItem.setTooltipText for setting a tooltip on the whole gtk.MenuToolButton
Sets the gtk.Menu that is popped up when the user clicks on the arrow. If menu is NULL, the arrow button becomes insensitive.
the main Gtk struct
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
Returns the name of the themed icon for the tool button, see ToolButton.setIconName.
Return the widget used as icon widget on button. See ToolButton.setIconWidget.
Returns the label used by the tool button, or NULL if the tool button doesn’t have a label. or uses a the label from a stock item. The returned string is owned by GTK+, and must not be modified or freed.
Returns the widget used as label on button. See ToolButton.setLabelWidget.
Returns the name of the stock item. See ToolButton.setStockId. The returned string is owned by GTK+ and must not be freed or modifed.
Returns whether underscores in the label property are used as mnemonics on menu items on the overflow menu. See ToolButton.setUseUnderline.
Sets the icon for the tool button from a named themed icon. See the docs for gtk.IconTheme for more details. The icon-name property only has an effect if not overridden by non-NULL label-widget, icon-widget and stock-id properties.
Sets label as the label used for the tool button. The label property only has an effect if not overridden by a non-NULL label-widget property. If both the label-widget and label properties are NULL, the label is determined by the stock-id property. If the stock-id property is also NULL, button will not have a label.
Sets the name of the stock item. See ToolButton.newFromStock. The stock_id property only has an effect if not overridden by non-NULL label-widget and icon-widget properties.
If set, an underline in the label property indicates that the next character should be used for the mnemonic accelerator key in the overflow menu. For example, if the label property is “_Open” and use_underline is TRUE, the label on the tool button will be “Open” and the item on the overflow menu will have an underlined “O”.
This signal is emitted when the tool button is clicked with the mouse or activated with the keyboard.
A gtk.MenuToolButton is a gtk.ToolItem that contains a button and a small additional button with an arrow. When clicked, the arrow button pops up a dropdown menu.
Use Menu.toolButtonNew to create a new gtk.MenuToolButton
GtkMenuToolButton as GtkBuildable
The GtkMenuToolButton implementation of the GtkBuildable interface supports adding a menu by specifying “menu” as the “type” attribute of a <child> element.
An example for a UI definition fragment with menus: |[ <object class="GtkMenuToolButton"> <child type="menu"> <object class="GtkMenu"/> </child> </object>