Class: Gtk::ToolButton
- Inherits:
-
Object
- Object
- Gtk::ToolButton
- Extended by:
- GLib::Deprecatable
- Defined in:
- lib/gtk3/deprecated.rb,
lib/gtk3/tool-button.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ToolButton
constructor
A new instance of ToolButton.
- #initialize_raw ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ ToolButton
Returns a new instance of ToolButton.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/gtk3/tool-button.rb', line 20 def initialize(={}) = [:icon_widget] label = [:label] stock_id = [:stock_id] if initialize_new() elsif stock_id initialize_new_from_stock(stock_id) else initialize_new end set_label(label) if label end |
Instance Method Details
#initialize_raw ⇒ Object
19 |
# File 'lib/gtk3/tool-button.rb', line 19 alias_method :initialize_raw, :initialize |