no need to escape title in notifications
This commit is contained in:
parent
f86b438303
commit
2c9da5bf87
|
@ -338,8 +338,7 @@ def popup(event_type, jid, account, msg_type='', path_to_image=None,
|
||||||
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,
|
DesktopNotification(event_type, jid, account, msg_type,
|
||||||
path_to_image, gobject.markup_escape_text(title),
|
path_to_image, title, gobject.markup_escape_text(text))
|
||||||
gobject.markup_escape_text(text))
|
|
||||||
return # sucessfully did D-Bus Notification procedure!
|
return # sucessfully did D-Bus Notification procedure!
|
||||||
except dbus.DBusException, e:
|
except dbus.DBusException, e:
|
||||||
# Connection to D-Bus failed
|
# Connection to D-Bus failed
|
||||||
|
@ -361,7 +360,7 @@ def popup(event_type, jid, account, msg_type='', path_to_image=None,
|
||||||
if not title:
|
if not title:
|
||||||
_title = ''
|
_title = ''
|
||||||
else:
|
else:
|
||||||
_title = gobject.markup_escape_text(title)
|
_title = title
|
||||||
|
|
||||||
notification = pynotify.Notification(_title, _text)
|
notification = pynotify.Notification(_title, _text)
|
||||||
timeout = gajim.config.get('notification_timeout') * 1000 # make it ms
|
timeout = gajim.config.get('notification_timeout') * 1000 # make it ms
|
||||||
|
|
Loading…
Reference in New Issue