From 6fe4e7caf530a37c3aff41e0dc1b4c7ee633e3e7 Mon Sep 17 00:00:00 2001 From: Eric Koegel Date: Mon, 1 Sep 2014 11:08:30 +0300 Subject: [PATCH] Hardcode the infobar label color (Bug 11100) The GtkInfoBar hard codes the background color which makes the label impossible to read with dark themes. This patch hard codes the label's color so you can read it with any theme. --- settings/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/settings/main.c b/settings/main.c index b3a582d..6312be1 100644 --- a/settings/main.c +++ b/settings/main.c @@ -1697,6 +1697,7 @@ xfdesktop_settings_dialog_setup_tabs(GtkBuilder *main_gxml, GdkScreen *screen; WnckScreen *wnck_screen; XfconfChannel *channel = panel->channel; + GdkColor color; TRACE("entering"); @@ -1805,6 +1806,8 @@ xfdesktop_settings_dialog_setup_tabs(GtkBuilder *main_gxml, "infobar_header")); panel->infobar_label = gtk_label_new("This is some text"); + gdk_color_parse ("black", &color); + gtk_widget_modify_fg (panel->infobar_label, GTK_STATE_NORMAL, &color); gtk_widget_set_no_show_all(panel->infobar, TRUE); gtk_widget_show(panel->infobar_label); gtk_widget_show(panel->infobar); -- 2.1.0