Debugging for #1389
This commit is contained in:
parent
50465c6265
commit
fd20be2ea9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue