image and box are not needed
This commit is contained in:
		
							parent
							
								
									77c8a3b03d
								
							
						
					
					
						commit
						b04814becd
					
				
					 1 changed files with 3 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -243,26 +243,22 @@ class NotificationAreaTooltip(BaseTooltip, StatusTable):
 | 
			
		|||
		self.text_lable.set_markup(text)
 | 
			
		||||
		self.hbox.add(self.table)
 | 
			
		||||
		self.win.add(self.hbox)
 | 
			
		||||
 | 
			
		||||
class GCTooltip(BaseTooltip, StatusTable):
 | 
			
		||||
	''' Tooltip that is shown in the GC treeview '''
 | 
			
		||||
	def __init__(self, plugin):
 | 
			
		||||
		self.account = None
 | 
			
		||||
		self.plugin = plugin
 | 
			
		||||
		
 | 
			
		||||
		self.image = gtk.Image()
 | 
			
		||||
		self.image.set_alignment(0.5, 0.025)
 | 
			
		||||
		BaseTooltip.__init__(self)
 | 
			
		||||
		StatusTable.__init__(self)
 | 
			
		||||
		
 | 
			
		||||
	def populate(self, contact):
 | 
			
		||||
		if not contact :
 | 
			
		||||
		if not contact:
 | 
			
		||||
			return
 | 
			
		||||
		self.create_window()
 | 
			
		||||
		self.hbox = gtk.HBox()
 | 
			
		||||
		self.hbox.set_homogeneous(False)
 | 
			
		||||
		self.create_table()
 | 
			
		||||
	
 | 
			
		||||
	
 | 
			
		||||
		info = '<span size="large" weight="bold">' + contact.name + '</span>'
 | 
			
		||||
		info += '\n<span weight="bold">' + _('Role: ') + '</span>' + \
 | 
			
		||||
			 helpers.get_uf_role(contact.role)
 | 
			
		||||
| 
						 | 
				
			
			@ -280,9 +276,7 @@ class GCTooltip(BaseTooltip, StatusTable):
 | 
			
		|||
				info += ' - ' + gtkgui_helpers.escape_for_pango_markup(status)
 | 
			
		||||
 | 
			
		||||
		self.text_lable.set_markup(info)
 | 
			
		||||
		self.hbox.pack_start(self.image, False, False)
 | 
			
		||||
		self.hbox.pack_start(self.table, True, True)
 | 
			
		||||
		self.win.add(self.hbox)	
 | 
			
		||||
		self.win.add(self.table)	
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class RosterTooltip(BaseTooltip, StatusTable):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue