[Xfce4-commits] <xfce4-taskmanager:master> Set monitor's background box use the prelight state

Mike Massonnet noreply at xfce.org
Mon Jun 21 12:28:03 CEST 2010


Updating branch refs/heads/master
         to 67267e606dbbd12081968b7432e4e41dc9625b20 (commit)
       from 7ffa0e379dba59074b4928ed30d002e1027dfe50 (commit)

commit 67267e606dbbd12081968b7432e4e41dc9625b20
Author: Mike Massonnet <mmassonnet at xfce.org>
Date:   Mon Jun 21 12:25:45 2010 +0200

    Set monitor's background box use the prelight state
    
    Most GTK+ themes have the same colors for normal and prelight, but some
    use a lighter version which makes the box look more distinguishable.

 src/process-monitor.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/process-monitor.c b/src/process-monitor.c
index 9b200c9..350c5d5 100644
--- a/src/process-monitor.c
+++ b/src/process-monitor.c
@@ -235,7 +235,7 @@ xtm_process_monitor_paint (XtmProcessMonitor *monitor)
 	height = GTK_WIDGET (monitor)->allocation.height;
 
 	/* Paint a box */
-	gtk_paint_box (GTK_WIDGET (monitor)->style, GTK_WIDGET (monitor)->window, GTK_STATE_NORMAL, GTK_SHADOW_IN,
+	gtk_paint_box (GTK_WIDGET (monitor)->style, GTK_WIDGET (monitor)->window, GTK_STATE_PRELIGHT, GTK_SHADOW_IN,
 			NULL, GTK_WIDGET (monitor), "trough", 0, 0, width, height);
 
 	/* Paint the graph */
@@ -272,7 +272,7 @@ xtm_process_monitor_paint (XtmProcessMonitor *monitor)
 	cairo_stroke (cr);
 
 	/* Repaint a shadow on top of everything to clear corners */
-	gtk_paint_shadow (GTK_WIDGET (monitor)->style, GTK_WIDGET (monitor)->window, GTK_STATE_NORMAL, GTK_SHADOW_IN,
+	gtk_paint_shadow (GTK_WIDGET (monitor)->style, GTK_WIDGET (monitor)->window, GTK_STATE_PRELIGHT, GTK_SHADOW_IN,
 			NULL, GTK_WIDGET (monitor), "trough", 0, 0, width, height);
 
 	cairo_destroy (cr);



More information about the Xfce4-commits mailing list