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