[Xfce4-commits] [xfce/gtk-xfce-engine] 02/10: Correctly draw spin button without state-hint set

noreply at xfce.org noreply at xfce.org
Fri Feb 6 22:15:12 CET 2015


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

peter pushed a commit to branch peter/gtk2
in repository xfce/gtk-xfce-engine.

commit a49861be9fc3f4ca2a7e89cd9ae35b2eeaaaf2b0
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
---
 src/xfce_theme_draw.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/xfce_theme_draw.c b/src/xfce_theme_draw.c
index 56375c1..8ffc61b 100644
--- a/src/xfce_theme_draw.c
+++ b/src/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"))
         {

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


More information about the Xfce4-commits mailing list