Removed 'apply' button. Changes are applied when closing the Options window.

This commit is contained in:
Denis Fomin
2010-09-22 10:39:55 +04:00
parent 9c714206d8
commit 9240230c60
2 changed files with 7 additions and 75 deletions
+6 -6
View File
@@ -76,15 +76,15 @@ class SetLocationPluginConfigDialog(GajimPluginConfigDialog):
config_table = self.xml.get_object('config_table')
self.child.pack_start(config_table)
self.xml.connect_signals(self)
self.connect('hide', self.on_hide)
def on_run(self):
for name in self.plugin.config_default_values:
widget = self.xml.get_object(name)
widget.set_text(str(self.plugin.config[name]))
def changed(self, entry):
name = gtk.Buildable.get_name(entry)
self.plugin.config[name] = entry.get_text()
def on_apply_clicked(self, widget):
self.plugin.activate()
def on_hide(self, widget):
for name in self.plugin.config_default_values:
widget = self.xml.get_object(name)
self.plugin.config[name] = widget.get_text()
self.plugin.activate()