Method: Gtk::ToolButton#initialize
- Defined in:
- lib/gtk3/tool-button.rb
#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 |