[Xfce4-commits] <gtk-xfce-engine:master> Correctly draw spin button without state-hint set
Peter de Ridder
noreply at xfce.org
Fri Feb 10 23:20:09 CET 2012
Updating branch refs/heads/master
to c51477618af859df685ff356aaa7cea858a00308 (commit)
from 0b76013e0c9df15a3c64d9f533da718c52fc1214 (commit)
commit c51477618af859df685ff356aaa7cea858a00308
Author: Peter de Ridder <peter at xfce.org>
Date: Wed Feb 8 20:25:53 2012 +0100
Correctly draw spin button without state-hint set
gtk-2.0/xfce_theme_draw.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/gtk-2.0/xfce_theme_draw.c b/gtk-2.0/xfce_theme_draw.c
index 56375c1..8ffc61b 100644
--- a/gtk-2.0/xfce_theme_draw.c
+++ b/gtk-2.0/xfce_theme_draw.c
@@ -168,6 +168,9 @@ static void xfce_fill_background(GtkStyle * style, GdkWindow * window, GtkStateT
if (DETAIL("spinbutton"))
{
draw_base = TRUE;
+ /* The entry sets the background to the base state color
+ * This function is called with the state conditionally set according to state-hint */
+ state_type = gtk_widget_get_state(widget);
}
else if (DETAIL("spinbutton_up") || DETAIL("spinbutton_down"))
{
More information about the Xfce4-commits
mailing list