Class: MyConfig::ConfComboHolder

Inherits:
Gtk::HBox
  • Object
show all
Includes:
Conf
Defined in:
lib/MyConfig.rb

Defined Under Namespace

Classes: ConfCombo

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Conf

#get_conf, #load_conf, #save_conf, #set_conf

Constructor Details

#initialize(label_text, conf_text, values) ⇒ ConfComboHolder

Returns a new instance of ConfComboHolder.



23
24
25
26
27
28
# File 'lib/MyConfig.rb', line 23

def initialize(label_text,conf_text,values)
	@conf_text=conf_text
	super()
	pack_start(Gtk::Label.new(label_text).set_alignment(0,0.5))
	pack_end(@combo=ConfCombo.new(values))
end

Instance Attribute Details

#conf_textObject

Returns the value of attribute conf_text.



29
30
31
# File 'lib/MyConfig.rb', line 29

def conf_text
  @conf_text
end

Instance Method Details

#updateObject



31
32
33
# File 'lib/MyConfig.rb', line 31

def update
	@combo.set_active(get_conf(0,0,@conf_text))
end