Skip to content

Commit

Permalink
Fix statusicon tooltip
Browse files Browse the repository at this point in the history
 * Don't use markup language on set_tooltip_text (as this function only
   accepts raw text), and for set_tooltip_markup use Pango markup language
   (different than HTML). So use a new-line character instead of <br>.
  • Loading branch information
clopez committed May 22, 2017
1 parent 0d2e955 commit 9c08d1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions revolt/statusicon.py
Expand Up @@ -138,9 +138,9 @@ def __init__(self, delegate, context_menu, app):

def set_tooltip(self, text):
if text is None:
self._icon.set_tooltip_text("<b>Revolt</b>")
self._icon.set_tooltip_text("Revolt")
else:
self._icon.set_tooltip_markup("<b>Revolt</b><br>{!s}".format(text))
self._icon.set_tooltip_markup("<b>Revolt</b>\n{!s}".format(text))

def set_status(self, status):
if status is Status.BLINKING:
Expand Down

0 comments on commit 9c08d1f

Please sign in to comment.