Fix a TB.

This commit is contained in:
js 2008-07-30 14:00:21 +00:00
parent d030cd8b03
commit 5a16f09b3e
1 changed files with 4 additions and 10 deletions

View File

@ -1273,17 +1273,12 @@ class ChatControl(ChatControlBase):
# Translate standard subactivities # Translate standard subactivities
if HAVE_MARKUP_TOOLTIPS: if HAVE_MARKUP_TOOLTIPS:
activity = gobject.markup_escape_text(activity) tooltip = '<b>' + gobject.markup_escape_text(activity)
subactivity = gobject.markup_escape_text(
subactivity)
tooltip = '<b>' + activity
if subactivity: if subactivity:
tooltip += ': ' + subactivity tooltip += ': ' + gobject.markup_escape_text(subactivity)
tooltip += '</b>' tooltip += '</b>'
if text: if text:
text = gobject.markup_escape_text(text) tooltip += '\n' + gobject.markup_escape_text(text)
tooltip += '\n' + text
self._activity_image.set_tooltip_markup(tooltip) self._activity_image.set_tooltip_markup(tooltip)
else: else:
tooltip = activity tooltip = activity
@ -1297,7 +1292,6 @@ class ChatControl(ChatControlBase):
else: else:
self._activity_image.hide() self._activity_image.hide()
def update_tune(self): def update_tune(self):
artist = None artist = None
title = None title = None
@ -2604,4 +2598,4 @@ class ChatControl(ChatControlBase):
self.print_conversation('%s' % (status), 'status', simple=True) self.print_conversation('%s' % (status), 'status', simple=True)
self.print_conversation(')', 'status', simple=True) self.print_conversation(')', 'status', simple=True)
# vim: se ts=3: # vim: se ts=3: