diff options
Diffstat (limited to 'src/themes/nodoka')
-rw-r--r-- | src/themes/nodoka/nodoka-theme.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c index 318291c..628a415 100644 --- a/src/themes/nodoka/nodoka-theme.c +++ b/src/themes/nodoka/nodoka-theme.c @@ -880,16 +880,21 @@ void set_notification_text(GtkWindow *nw, const char *summary, const char *body) { char *str; + char* quoted; WindowData *windata = g_object_get_data(G_OBJECT(nw), "windata"); g_assert(windata != NULL); + quoted = g_markup_escape_text(summary, -1); str = g_strdup_printf( - "<span color=\"#000000\"><b><big>%s</big></b></span>", summary); + "<span color=\"#000000\"><b><big>%s</big></b></span>", quoted); + g_free(quoted); gtk_label_set_markup(GTK_LABEL(windata->summary_label), str); g_free(str); + quoted = g_markup_escape_text(body, -1); str = g_strdup_printf( - "<span color=\"#000000\">%s</span>", body); + "<span color=\"#000000\">%s</span>", quoted); + g_free(quoted); gtk_label_set_markup(GTK_LABEL(windata->body_label), str); g_free(str); |