changeset 29c6ba3df210 in /home/hg/repos/gajim
branches: gtk3 details:http://hg.gajim.org/gajim?cmd=changeset;node=29c6ba3df210 description: Make plugin config dialog not modal
diffstat:
src/dialogs.py | 2 +- src/plugins/gui.py | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-)
diffs (41 lines):
diff -r 8db2f41338f8 -r 29c6ba3df210 src/dialogs.py --- a/src/dialogs.py Thu May 16 21:06:41 2013 +0200 +++ b/src/dialogs.py Sun May 19 20:40:20 2013 +0400 @@ -2571,7 +2571,7 @@ ErrorDialog(_('This is not a group chat'), _('%s is not the name of a group chat.') % room_jid) return - + full_jid = room_jid + '/' + nickname if full_jid in self.recently_groupchat: self.recently_groupchat.remove(full_jid) diff -r 8db2f41338f8 -r 29c6ba3df210 src/plugins/gui.py --- a/src/plugins/gui.py Thu May 16 21:06:41 2013 +0200 +++ b/src/plugins/gui.py Sun May 19 20:40:20 2013 +0400 @@ -315,19 +315,22 @@ 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):