Class: GOffice::OptionMenu
- Inherits:
-
Gtk::Button
- Object
- Gtk::Button
- GOffice::OptionMenu
- Defined in:
- (unknown)
Class Method Summary collapse
-
.build(first_entry, array) ⇒ Gtk::Widget
This function takes a nil-terminated list of string-integer pairs and fills in a menu with the given texts.
Instance Method Summary collapse
-
#history ⇒ Gtk::Widget
Retrieves the currently selected menu item.
-
#history=(selection) ⇒ nil
Selects an item.
- #initialize ⇒ Gtk::Widget constructor
-
#label ⇒ Gtk::Widget
The Gtk::Label used for the button text.
-
#menu ⇒ Gtk::Menu
Menu.
- #menu=(menu) ⇒ Gtk::Menu
- #select_item(item) ⇒ nil
Constructor Details
#initialize ⇒ Gtk::Widget
Class Method Details
.build(first_entry, array) ⇒ Gtk::Widget
This function takes a nil-terminated list of string-integer pairs and fills in a menu with the given texts. Each menu entry will have a data property "value" sets to the given value. The menu is then placed inside a new GOOption::Menu which is then returned.
Instance Method Details
#history ⇒ Gtk::Widget
Retrieves the currently selected menu item.
#history=(selection) ⇒ nil
Selects an item. The last number in the list is the rank of the item to select in its menu and the previous ones are the ranks of the submenus containing the item to select.
#label ⇒ Gtk::Widget
Returns The Gtk::Label used for the button text.
#menu ⇒ Gtk::Menu
Returns menu.