From b04814becd705aba1c1e5e3a334d8cb4ee0efb0c Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Wed, 24 Aug 2005 17:29:35 +0000 Subject: [PATCH] image and box are not needed --- src/tooltips.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/tooltips.py b/src/tooltips.py index fd089b56a..96bd837ca 100644 --- a/src/tooltips.py +++ b/src/tooltips.py @@ -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 = '' + contact.name + '' info += '\n' + _('Role: ') + '' + \ 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):