Fis transient for manage_proxies_window
This commit is contained in:
parent
2e57526198
commit
e0db6fe2a5
|
@ -22,6 +22,7 @@
|
|||
<object class="GtkWindow" id="manage_proxies_window">
|
||||
<property name="border_width">12</property>
|
||||
<property name="title" translatable="yes">Manage Proxy Profiles</property>
|
||||
<property name="window_position">center-on-parent</property>
|
||||
<property name="type_hint">dialog</property>
|
||||
<signal name="destroy" handler="on_manage_proxies_window_destroy"/>
|
||||
<child>
|
||||
|
|
|
@ -1271,7 +1271,8 @@ class PreferencesWindow:
|
|||
if 'manage_proxies' in gajim.interface.instances:
|
||||
gajim.interface.instances['manage_proxies'].window.present()
|
||||
else:
|
||||
gajim.interface.instances['manage_proxies'] = ManageProxiesWindow()
|
||||
gajim.interface.instances['manage_proxies'] = ManageProxiesWindow(
|
||||
self.window)
|
||||
|
||||
def update_proxy_list(self):
|
||||
our_proxy = gajim.config.get('global_proxy')
|
||||
|
@ -1296,10 +1297,10 @@ class PreferencesWindow:
|
|||
|
||||
#---------- ManageProxiesWindow class -------------#
|
||||
class ManageProxiesWindow:
|
||||
def __init__(self):
|
||||
def __init__(self, transient_for=None):
|
||||
self.xml = gtkgui_helpers.get_gtk_builder('manage_proxies_window.ui')
|
||||
self.window = self.xml.get_object('manage_proxies_window')
|
||||
self.window.set_transient_for(gajim.interface.roster.window)
|
||||
self.window.set_transient_for(transient_for)
|
||||
self.proxies_treeview = self.xml.get_object('proxies_treeview')
|
||||
self.proxyname_entry = self.xml.get_object('proxyname_entry')
|
||||
self.proxytype_combobox = self.xml.get_object('proxytype_combobox')
|
||||
|
@ -2376,7 +2377,8 @@ class AccountsWindow:
|
|||
if 'manage_proxies' in gajim.interface.instances:
|
||||
gajim.interface.instances['manage_proxies'].window.present()
|
||||
else:
|
||||
gajim.interface.instances['manage_proxies'] = ManageProxiesWindow()
|
||||
gajim.interface.instances['manage_proxies'] = ManageProxiesWindow(
|
||||
self.window)
|
||||
|
||||
def on_warn_when_insecure_connection_checkbutton1_toggled(self, widget):
|
||||
if self.ignore_events:
|
||||
|
|
Loading…
Reference in New Issue