Make plugin config dialog not modal
This commit is contained in:
parent
dea17edf4e
commit
ea1d192153
2 changed files with 8 additions and 6 deletions
|
@ -2397,7 +2397,7 @@ class JoinGroupchatWindow:
|
||||||
else:
|
else:
|
||||||
show = r_jid
|
show = r_jid
|
||||||
liststore.append([show, g])
|
liststore.append([show, g])
|
||||||
server = gajim.get_server_from_jid(r_jid)
|
server = gajim.get_server_from_jid(r_jid)
|
||||||
if server not in server_list and not server.startswith('irc'):
|
if server not in server_list and not server.startswith('irc'):
|
||||||
server_list.append(server)
|
server_list.append(server)
|
||||||
|
|
||||||
|
@ -2543,7 +2543,7 @@ class JoinGroupchatWindow:
|
||||||
ErrorDialog(_('This is not a group chat'),
|
ErrorDialog(_('This is not a group chat'),
|
||||||
_('%s is not the name of a group chat.') % room_jid)
|
_('%s is not the name of a group chat.') % room_jid)
|
||||||
return
|
return
|
||||||
|
|
||||||
full_jid = room_jid + '/' + nickname
|
full_jid = room_jid + '/' + nickname
|
||||||
if full_jid in self.recently_groupchat:
|
if full_jid in self.recently_groupchat:
|
||||||
self.recently_groupchat.remove(full_jid)
|
self.recently_groupchat.remove(full_jid)
|
||||||
|
|
|
@ -306,19 +306,21 @@ class GajimPluginConfigDialog(gtk.Dialog):
|
||||||
gtk.Dialog.__init__(self, '%s %s'%(plugin.name, _('Configuration')),
|
gtk.Dialog.__init__(self, '%s %s'%(plugin.name, _('Configuration')),
|
||||||
**kwargs)
|
**kwargs)
|
||||||
self.plugin = plugin
|
self.plugin = plugin
|
||||||
self.add_button('gtk-close', gtk.RESPONSE_CLOSE)
|
button = self.add_button('gtk-close', gtk.RESPONSE_CLOSE)
|
||||||
|
button.connect('clicked', self.on_close_button_clicked)
|
||||||
self.child.set_spacing(3)
|
self.child.set_spacing(3)
|
||||||
|
|
||||||
self.init()
|
self.init()
|
||||||
|
|
||||||
|
def on_close_button_clicked(self, widget):
|
||||||
|
self.hide()
|
||||||
|
|
||||||
@log_calls('GajimPluginConfigDialog')
|
@log_calls('GajimPluginConfigDialog')
|
||||||
def run(self, parent=None):
|
def run(self, parent=None):
|
||||||
self.set_transient_for(parent)
|
self.set_transient_for(parent)
|
||||||
self.on_run()
|
self.on_run()
|
||||||
self.show_all()
|
self.show_all()
|
||||||
result = super(GajimPluginConfigDialog, self).run()
|
result = super(GajimPluginConfigDialog, self)
|
||||||
self.hide()
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def init(self):
|
def init(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue