Debugging for #1389
This commit is contained in:
		
							parent
							
								
									50465c6265
								
							
						
					
					
						commit
						fd20be2ea9
					
				
					 1 changed files with 13 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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.'''
 | 
			
		||||
| 
						 | 
				
			
			@ -54,6 +64,9 @@ class MessageWindow:
 | 
			
		|||
		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
 | 
			
		||||
		# this point,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue