Make plugin config dialog not modal
This commit is contained in:
parent
c8c457318e
commit
beb74fcaad
|
@ -315,19 +315,22 @@ 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.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.get_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…
Reference in New Issue