diff options
Diffstat (limited to 'src/themes/standard')
-rw-r--r-- | src/themes/standard/theme.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/themes/standard/theme.c b/src/themes/standard/theme.c index f13d174..59e07c2 100644 --- a/src/themes/standard/theme.c +++ b/src/themes/standard/theme.c @@ -857,15 +857,12 @@ 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); - if (strstr(body, "&") || strstr(body, "<") || strstr(body, ">") || strstr(body, "'") || strstr(body, """)) + if (pango_parse_markup (body, -1, 0, NULL, NULL, NULL, NULL)) { - gtk_label_set_markup(GTK_LABEL(windata->body_label), body); + gtk_label_set_markup (GTK_LABEL (windata->body_label), body); } - else - { - quoted = g_markup_escape_text(body, -1); - gtk_label_set_markup(GTK_LABEL(windata->body_label), quoted); - g_free(quoted); + else { + gtk_label_set_text (GTK_LABEL (windata->body_label), body); } if (body == NULL || *body == '\0') |