Removed debug code from #1389
This commit is contained in:
		
							parent
							
								
									df1f876603
								
							
						
					
					
						commit
						065962ba86
					
				
					 1 changed files with 0 additions and 13 deletions
				
			
		| 
						 | 
				
			
			@ -33,16 +33,6 @@ 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.'''
 | 
			
		||||
| 
						 | 
				
			
			@ -64,9 +54,6 @@ class MessageWindow:
 | 
			
		|||
		self.xml.signal_autoconnect(self)
 | 
			
		||||
		self.window = self.xml.get_widget(self.widget_name)
 | 
			
		||||
 | 
			
		||||
		# FIXME: Debugging #1389
 | 
			
		||||
		print_children(self.window)
 | 
			
		||||
 | 
			
		||||
		# gtk+ doesn't make use of the motion notify on gtkwindow by default
 | 
			
		||||
		# so this line adds that
 | 
			
		||||
		self.window.add_events(gtk.gdk.POINTER_MOTION_MASK)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue