image and box are not needed

This commit is contained in:
Nikos Kouremenos 2005-08-24 17:29:35 +00:00
parent 77c8a3b03d
commit b04814becd
1 changed files with 3 additions and 9 deletions

View File

@ -243,26 +243,22 @@ class NotificationAreaTooltip(BaseTooltip, StatusTable):
self.text_lable.set_markup(text) self.text_lable.set_markup(text)
self.hbox.add(self.table) self.hbox.add(self.table)
self.win.add(self.hbox) self.win.add(self.hbox)
class GCTooltip(BaseTooltip, StatusTable): class GCTooltip(BaseTooltip, StatusTable):
''' Tooltip that is shown in the GC treeview ''' ''' Tooltip that is shown in the GC treeview '''
def __init__(self, plugin): def __init__(self, plugin):
self.account = None self.account = None
self.plugin = plugin self.plugin = plugin
self.image = gtk.Image()
self.image.set_alignment(0.5, 0.025)
BaseTooltip.__init__(self) BaseTooltip.__init__(self)
StatusTable.__init__(self) StatusTable.__init__(self)
def populate(self, contact): def populate(self, contact):
if not contact : if not contact:
return return
self.create_window() self.create_window()
self.hbox = gtk.HBox()
self.hbox.set_homogeneous(False)
self.create_table() self.create_table()
info = '<span size="large" weight="bold">' + contact.name + '</span>' info = '<span size="large" weight="bold">' + contact.name + '</span>'
info += '\n<span weight="bold">' + _('Role: ') + '</span>' + \ info += '\n<span weight="bold">' + _('Role: ') + '</span>' + \
helpers.get_uf_role(contact.role) helpers.get_uf_role(contact.role)
@ -280,9 +276,7 @@ class GCTooltip(BaseTooltip, StatusTable):
info += ' - ' + gtkgui_helpers.escape_for_pango_markup(status) info += ' - ' + gtkgui_helpers.escape_for_pango_markup(status)
self.text_lable.set_markup(info) self.text_lable.set_markup(info)
self.hbox.pack_start(self.image, False, False) self.win.add(self.table)
self.hbox.pack_start(self.table, True, True)
self.win.add(self.hbox)
class RosterTooltip(BaseTooltip, StatusTable): class RosterTooltip(BaseTooltip, StatusTable):