From c54dfb4ffd53f1b50661d4c8be54c3ded2a66791 Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Tue, 12 Dec 2006 22:06:24 +0000 Subject: [PATCH] Restore gc_banner tooltip (was broken when icon was added). See #2766. --- src/groupchat_control.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/groupchat_control.py b/src/groupchat_control.py index 0c2391e78..6425ba191 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -239,6 +239,7 @@ class GroupchatControl(ChatControlBase): self.gc_popup_menu = xm.get_widget('gc_control_popup_menu') self.name_label = self.xml.get_widget('banner_name_label') + self.event_box = self.xml.get_widget('banner_eventbox') # set the position of the current hpaned self.hpaned_position = gajim.config.get('gc-hpaned-position') @@ -452,9 +453,8 @@ class GroupchatControl(ChatControlBase): subject = gtkgui_helpers.escape_for_pango_markup(subject) text += '\n%s' % (font_attrs_small, subject) - # tooltip must always hold ALL the subject - event_box = self.name_label.get_parent() - self.subject_tooltip.set_tip(event_box, self.subject) + # tooltip must always hold ALL the subject + self.subject_tooltip.set_tip(self.event_box, self.subject) self.name_label.set_markup(text)