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.
This commit is contained in:
Mike Massonnet
2010-06-21 12:25:45 +02:00
parent 7ffa0e379d
commit 67267e606d

View File

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