get GtkWindow instance when we use set_transient_for. Fixes #2170

This commit is contained in:
Yann Leboulanger 2006-07-18 08:40:44 +00:00
parent 3895724710
commit a65203ac6e
1 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,8 @@ class AdvancedConfigurationWindow:
def __init__(self):
self.xml = gtkgui_helpers.get_glade('advanced_configuration_window.glade')
self.window = self.xml.get_widget('advanced_configuration_window')
self.window.set_transient_for(gajim.interface.instances['preferences'])
self.window.set_transient_for(
gajim.interface.instances['preferences'].window)
self.entry = self.xml.get_widget('advanced_entry')
self.desc_label = self.xml.get_widget('advanced_desc_label')
self.restart_label = self.xml.get_widget('restart_label')