From 7d90c781e7b7fbc580fa828c2c2fa655f3aa7bf4 Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Sun, 1 Nov 2015 12:20:03 +0100 Subject: Nodoka: use a fixed font color fixes https://github.com/mate-desktop/mate-notification-daemon/issues/86 Currenty the theme use the font color from gtk theme, which give us unreadable notifications text in case of using a dark gtk theme with mostly light font colors. --- src/themes/nodoka/nodoka-theme.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c index 15d176e..27b1912 100644 --- a/src/themes/nodoka/nodoka-theme.c +++ b/src/themes/nodoka/nodoka-theme.c @@ -1002,11 +1002,15 @@ set_notification_text(GtkWindow *nw, const char *summary, const char *body) WindowData *windata = g_object_get_data(G_OBJECT(nw), "windata"); g_assert(windata != NULL); - str = g_strdup_printf("%s", summary); + str = g_strdup_printf( + "%s", summary); gtk_label_set_markup(GTK_LABEL(windata->summary_label), str); g_free(str); - gtk_label_set_markup(GTK_LABEL(windata->body_label), body); + str = g_strdup_printf( + "%s", body); + gtk_label_set_markup(GTK_LABEL(windata->body_label), str); + g_free(str); if (body == NULL || *body == '\0') gtk_widget_hide(windata->body_label); -- cgit v1.2.1