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