Index: channels/configwin.py ================================================================== --- channels/configwin.py +++ channels/configwin.py @@ -83,22 +83,22 @@ # Store gtk widget valus back into conf. dict def save_config(self, config, prefix="config_", save=0, widgets={}): for key,val in config.items(): w = self.main.get_widget(prefix + key) or widgets.get(prefix + key) if w: + # int + if isinstance(w, gtk.SpinButton): + config[key] = int(w.get_value()) # text - if isinstance(w, gtk.Entry): + elif isinstance(w, gtk.Entry): config[key] = w.get_text() # pre-defined text elif isinstance(w, ComboBoxText): config[key] = w.get_active_text() # boolean elif isinstance(w, gtk.CheckButton): config[key] = w.get_active() - # int - elif isinstance(w, gtk.SpinButton): - config[key] = int(w.get_value(val)) # dict elif isinstance(w, gtk.ListStore): if key in config and isinstance(config[key], list): config[key] = [] for row in w: