[Xfce4-commits] <xfce4-panel:devel> Change binary colors.

Nick Schermer noreply at xfce.org
Tue Feb 23 17:20:04 CET 2010


Updating branch refs/heads/devel
         to 948ef3bc7842b52bc7ef739e2e97f2ff7fa695aa (commit)
       from 145dbe9243d7f44fae6e48073dbda1c2450e0c91 (commit)

commit 948ef3bc7842b52bc7ef739e2e97f2ff7fa695aa
Author: Nick Schermer <nick at xfce.org>
Date:   Tue Feb 23 12:16:56 2010 +0100

    Change binary colors.

 plugins/clock/clock-binary.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/plugins/clock/clock-binary.c b/plugins/clock/clock-binary.c
index 7502f68..abe34d3 100644
--- a/plugins/clock/clock-binary.c
+++ b/plugins/clock/clock-binary.c
@@ -276,8 +276,8 @@ xfce_clock_binary_expose_event_true_binary (XfceClockBinary *binary,
   gint         w, h, x;
   gint         ticks;
 
-  inactive = &(GTK_WIDGET (binary)->style->fg[GTK_STATE_NORMAL]);
-  active = &(GTK_WIDGET (binary)->style->bg[GTK_STATE_SELECTED]);
+  inactive = &(GTK_WIDGET (binary)->style->dark[GTK_STATE_NORMAL]);
+  active = &(GTK_WIDGET (binary)->style->dark[GTK_STATE_SELECTED]);
 
   clock_plugin_get_localtime (&tm);
 
@@ -352,8 +352,8 @@ xfce_clock_binary_expose_event_binary (XfceClockBinary *binary,
   gint         w, h, y;
   gint         ticks;
 
-  inactive = &(GTK_WIDGET (binary)->style->fg[GTK_STATE_NORMAL]);
-  active = &(GTK_WIDGET (binary)->style->bg[GTK_STATE_SELECTED]);
+  inactive = &(GTK_WIDGET (binary)->style->dark[GTK_STATE_NORMAL]);
+  active = &(GTK_WIDGET (binary)->style->dark[GTK_STATE_SELECTED]);
 
   clock_plugin_get_localtime (&tm);
 
@@ -461,7 +461,7 @@ xfce_clock_binary_expose_event (GtkWidget      *widget,
 
       if (binary->show_grid)
         {
-          color = &(GTK_WIDGET (binary)->style->fg[GTK_STATE_NORMAL]);
+          color = &(GTK_WIDGET (binary)->style->light[GTK_STATE_SELECTED]);
           gdk_cairo_set_source_color (cr, color);
           cairo_set_line_width (cr, 1);
 



More information about the Xfce4-commits mailing list