diff options
author | Denis Fomin <fominde@gmail.com> | 2013-05-19 20:40:20 +0400 |
---|---|---|
committer | Denis Fomin <fominde@gmail.com> | 2013-05-19 20:40:20 +0400 |
commit | beb74fcaadda61a3e9e26bf38818b897b8bcf652 (patch) | |
tree | e526ea12c08d6176d2bc41e85dd3d9dd726674bc /src/plugins | |
parent | c8c457318e60a40a4e7be6c9f6ad2690c61fe03e (diff) |
Make plugin config dialog not modal
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/gui.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/gui.py b/src/plugins/gui.py index b97711d9b..16d907501 100644 --- a/src/plugins/gui.py +++ b/src/plugins/gui.py @@ -315,19 +315,22 @@ class GajimPluginConfigDialog(Gtk.Dialog): Gtk.Dialog.__init__(self, '%s %s'%(plugin.name, _('Configuration')), **kwargs) self.plugin = plugin - self.add_button('gtk-close', Gtk.ResponseType.CLOSE) + button = self.add_button('gtk-close', Gtk.ResponseType.CLOSE) + button.connect('clicked', self.on_close_button_clicked) self.get_child().set_spacing(3) self.init() + def on_close_button_clicked(self, widget): + self.hide() + @log_calls('GajimPluginConfigDialog') def run(self, parent=None): self.set_transient_for(parent) self.on_run() self.show_all() - result = super(GajimPluginConfigDialog, self).run() - self.hide() + result = super(GajimPluginConfigDialog, self) return result def init(self): |