fix transient for. Fixes #7185

This commit is contained in:
Denis Fomin 2013-09-21 11:51:16 +04:00
parent 29b9637838
commit 2c4e44af3b
2 changed files with 4 additions and 2 deletions

View File

@ -4152,7 +4152,8 @@ class ManageSoundsWindow:
def __init__(self):
self.xml = gtkgui_helpers.get_gtk_builder('manage_sounds_window.ui')
self.window = self.xml.get_object('manage_sounds_window')
self.window.set_transient_for(
gajim.interface.instances['preferences'].window)
# sounds treeview
self.sound_tree = self.xml.get_object('sounds_treeview')

View File

@ -35,7 +35,8 @@ class GajimThemesWindow:
def __init__(self):
self.xml = gtkgui_helpers.get_gtk_builder('gajim_themes_window.ui')
self.window = self.xml.get_object('gajim_themes_window')
self.window.set_transient_for(gajim.interface.roster.window)
self.window.set_transient_for(gajim.interface.instances[
'preferences'].window)
self.options = ['account', 'group', 'contact', 'banner']
self.options_combobox = self.xml.get_object('options_combobox')