Class: Gio::MenuItem

Inherits:
Object
  • Object
show all
Defined in:
lib/gio2/menu-item.rb

Instance Method Summary collapse

Instance Method Details

#set_attribute_value(name, value) ⇒ Object Also known as: []=



20
21
22
23
24
25
# File 'lib/gio2/menu-item.rb', line 20

def set_attribute_value(name, value)
  if !value.nil? and !value.is_a?(GLib::Variant)
    value = GLib::Variant.new(value)
  end
  set_attribute_value_raw(name, value)
end

#set_attribute_value_rawObject



19
# File 'lib/gio2/menu-item.rb', line 19

alias_method :set_attribute_value_raw, :set_attribute_value