Class: Gtk::MenuToolButton

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#arrow_tooltip_markup=(markup) ⇒ nil

Sets the tooltip markup text to be used as tooltip for the arrow button which pops up the menu. See gtk_tool_item_set_tooltip_text() for setting a tooltip on the whole Gtk::MenuToolButton.

Parameters:

  • markup (String)

    markup text to be used as tooltip text for button’s arrow button

Returns:

  • (nil)

#arrow_tooltip_text=(text) ⇒ nil

Sets the tooltip text to be used as tooltip for the arrow button which pops up the menu. See gtk_tool_item_set_tooltip_text() for setting a tooltip on the whole Gtk::MenuToolButton.

Parameters:

  • text (String)

    text to be used as tooltip text for button’s arrow button

Returns:

  • (nil)

Returns menu.

Returns:

Parameters:

Returns:

#new(icon_widget, label) ⇒ Gtk::ToolItem

Creates a new Gtk::MenuToolButton using icon_widget as icon and label as label.

Parameters:

  • icon_widget (Gtk::Widget)

    a widget that will be used as icon widget, or nil

  • label (String)

    a string that will be used as label, or nil

Returns:

#new_from_stock(stock_id) ⇒ Gtk::ToolItem

Creates a new Gtk::MenuToolButton. The new Gtk::MenuToolButton will contain an icon and label from the stock item indicated by stock_id.

Parameters:

  • stock_id (String)

    the name of a stock item

Returns: