[Xfce4-commits] [xfce/xfdesktop] 01/01: Hardcode the infobar label color (Bug 11100)

noreply at xfce.org noreply at xfce.org
Tue Sep 2 02:44:02 CEST 2014


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository xfce/xfdesktop.

commit b8b11ad4180f3b41dbb07bde88da1b1a6a1230ac
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Mon Sep 1 11:08:30 2014 +0300

    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);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list