From fd20be2ea94829f5a7b0a23421df8b7e23315009 Mon Sep 17 00:00:00 2001 From: Travis Shirk Date: Fri, 27 Jan 2006 04:22:06 +0000 Subject: [PATCH] Debugging for #1389 --- src/message_window.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/message_window.py b/src/message_window.py index cd5528db4..7e87ce88d 100644 --- a/src/message_window.py +++ b/src/message_window.py @@ -33,6 +33,16 @@ APP = i18n.APP GTKGUI_GLADE = 'gtkgui.glade' #################### +# FIXME: Debugging #1389 +def print_children(widget): + print "widget: %s" % widget.get_name() + if isinstance(widget, gtk.Container): + for c in widget.get_children(): + name = c.get_name() + sz = c.size_request() + print "child: %s, %s" % (name, str(sz)) + print_children(c) + class MessageWindow: '''Class for windows which contain message like things; chats, groupchats, etc.''' @@ -53,6 +63,9 @@ class MessageWindow: self.xml = gtk.glade.XML(GTKGUI_GLADE, self.widget_name, APP) self.xml.signal_autoconnect(self) self.window = self.xml.get_widget(self.widget_name) + + # FIXME: Debugging #1389 + print_children(self.window) # FIXME: # I don't really understand, but get_property('visible') returns True at