summaryrefslogtreecommitdiff
path: root/src/themes/slider/theme.c
diff options
context:
space:
mode:
authorkajzer <[email protected]>2016-08-27 21:25:10 +0200
committerkajzer <[email protected]>2016-08-27 21:58:17 +0200
commitf95d699d693d3781a15c90a04bc63ad62897eb48 (patch)
treed7870e7e8cfddba82557399a3d4058cd24075bc1 /src/themes/slider/theme.c
parentda0b7c16ee5cfaa0a3fa5e913e39b0c8b539e1bf (diff)
downloadmate-notification-daemon-f95d699d693d3781a15c90a04bc63ad62897eb48.tar.bz2
mate-notification-daemon-f95d699d693d3781a15c90a04bc63ad62897eb48.tar.xz
Fix: escape text #106
Diffstat (limited to 'src/themes/slider/theme.c')
-rw-r--r--src/themes/slider/theme.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/themes/slider/theme.c b/src/themes/slider/theme.c
index 5fecb71..86440b0 100644
--- a/src/themes/slider/theme.c
+++ b/src/themes/slider/theme.c
@@ -513,7 +513,9 @@ void set_notification_text(GtkWindow* nw, const char* summary, const char* body)
gtk_label_set_markup(GTK_LABEL(windata->summary_label), str);
g_free(str);
- gtk_label_set_markup(GTK_LABEL(windata->body_label), body);
+ quoted = g_markup_escape_text(body, -1);
+ gtk_label_set_markup(GTK_LABEL(windata->body_label), quoted);
+ g_free(quoted);
if (body == NULL || *body == '\0')
{