Restore gc_banner tooltip (was broken when icon was added). See #2766.

This commit is contained in:
Jean-Marie Traissard 2006-12-12 22:06:24 +00:00
parent 3d844c0e29
commit c54dfb4ffd
1 changed files with 3 additions and 3 deletions

View File

@ -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<span %s>%s</span>' % (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)