From a65203ac6e368a114e0a7bd00304bd9f0d5d6f78 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 18 Jul 2006 08:40:44 +0000 Subject: [PATCH] get GtkWindow instance when we use set_transient_for. Fixes #2170 --- src/advanced.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/advanced.py b/src/advanced.py index 9523f55e7..76bf6ed4f 100644 --- a/src/advanced.py +++ b/src/advanced.py @@ -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')