Skip to content
Snippets Groups Projects
Commit 56df7024 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

do not call gtkgui_helpers functions in common folder. Also fix a traceback...

do not call gtkgui_helpers functions in common folder. Also fix a traceback when trying to view systray tooltip
parent 9b83c744
No related branches found
No related tags found
No related merge requests found
......@@ -896,7 +896,6 @@ def get_notification_icon_tooltip_text():
elif len(accounts) == 1:
message = accounts[0]['status_line']
message = reduce_chars_newlines(message, 100, 1)
message = gtkgui_helpers.escape_for_pango_markup(message)
text = _('Gajim - %s') % message
else:
text = _('Gajim - %s') % get_uf_show('offline')
......
......@@ -52,6 +52,8 @@ class StatusIcon(systray.Systray):
if not gajim.interface.systray_enabled:
return
text = helpers.get_notification_icon_tooltip_text()
#FIXME: if you do that, import gtkgui_helpers
text = gtkgui_helpers.escape_for_pango_markup(text)
self.status_icon.set_tooltip(text)
if gajim.events.get_nb_systray_events():
state = 'message'
......
......@@ -260,6 +260,7 @@ class NotificationAreaTooltip(BaseTooltip, StatusTable):
self.table.set_property('column-spacing', 1)
text = helpers.get_notification_icon_tooltip_text()
text = gtkgui_helpers.escape_for_pango_markup(text)
self.add_text_row(text)
self.hbox.add(self.table)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment