Fix a TB.
This commit is contained in:
parent
d030cd8b03
commit
5a16f09b3e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue