[jim++] pango escape text. (#1806)
This commit is contained in:
parent
e703218466
commit
d86797d034
|
@ -20,6 +20,7 @@
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
import dialogs
|
import dialogs
|
||||||
|
import gtkgui_helpers
|
||||||
|
|
||||||
from common import gajim
|
from common import gajim
|
||||||
from common import i18n
|
from common import i18n
|
||||||
|
@ -38,6 +39,7 @@ def notify(event_type, jid, account, msg_type = '', path_to_image = None,
|
||||||
'''Notifies a user of an event. It first tries to a valid implementation of
|
'''Notifies a user of an event. It first tries to a valid implementation of
|
||||||
the Desktop Notification Specification. If that fails, then we fall back to
|
the Desktop Notification Specification. If that fails, then we fall back to
|
||||||
the older style PopupNotificationWindow method.'''
|
the older style PopupNotificationWindow method.'''
|
||||||
|
text = gtkgui_helpers.escape_for_pango_markup(text)
|
||||||
if gajim.config.get('use_notif_daemon') and dbus_support.supported:
|
if gajim.config.get('use_notif_daemon') and dbus_support.supported:
|
||||||
try:
|
try:
|
||||||
DesktopNotification(event_type, jid, account, msg_type, path_to_image,
|
DesktopNotification(event_type, jid, account, msg_type, path_to_image,
|
||||||
|
|
Loading…
Reference in New Issue