diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-10-29 19:17:04 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-10-29 19:29:49 +0800 |
commit | 4363fe7a71208ee2d696211838f028ef97700b45 (patch) | |
tree | 2bd23079c6a062179742747072089edf516e63c4 /src | |
parent | 4c2eb652ef61dd0f5ccac27e47f261417793aa73 (diff) | |
download | gsoc2013-empathy-4363fe7a71208ee2d696211838f028ef97700b45.tar gsoc2013-empathy-4363fe7a71208ee2d696211838f028ef97700b45.tar.gz gsoc2013-empathy-4363fe7a71208ee2d696211838f028ef97700b45.tar.bz2 gsoc2013-empathy-4363fe7a71208ee2d696211838f028ef97700b45.tar.lz gsoc2013-empathy-4363fe7a71208ee2d696211838f028ef97700b45.tar.xz gsoc2013-empathy-4363fe7a71208ee2d696211838f028ef97700b45.tar.zst gsoc2013-empathy-4363fe7a71208ee2d696211838f028ef97700b45.zip |
Escape the header of the notification (#599431)
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-status-icon.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c index 3af060acf..a2a6f54fb 100644 --- a/src/empathy-status-icon.c +++ b/src/empathy-status-icon.c @@ -155,17 +155,21 @@ status_icon_update_notification (EmpathyStatusIcon *icon) if (priv->event) { gchar *message_esc = NULL; + gchar *header_esc = NULL; if (priv->event->message != NULL) message_esc = g_markup_escape_text (priv->event->message, -1); + if (priv->event->header != NULL) + header_esc = g_markup_escape_text (priv->event->header, -1); + if (priv->notification) { notify_notification_update (priv->notification, - priv->event->header, message_esc, + header_esc, message_esc, NULL); } else { priv->notification = notify_notification_new_with_status_icon - (priv->event->header, message_esc, NULL, priv->icon); + (header_esc, message_esc, NULL, priv->icon); notify_notification_set_timeout (priv->notification, NOTIFY_EXPIRES_DEFAULT); @@ -194,6 +198,7 @@ status_icon_update_notification (EmpathyStatusIcon *icon) notify_notification_show (priv->notification, NULL); g_free (message_esc); + g_free (header_esc); } else { notification_close_helper (priv); } |