[Xfce4-commits] [xfce/gtk-xfce-engine] 08/08: Use parent style for retrieving the background.

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


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

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

commit f23358109325bc9644a9ac7e61ff8b4eb3a9a502
Author: Peter de Ridder <peter at xfce.org>
Date:   Thu Jan 9 22:11:32 2014 +0100

    Use parent style for retrieving the background.
---
 src/xfce_theme_draw.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xfce_theme_draw.c b/src/xfce_theme_draw.c
index b1eff5b..4226d25 100644
--- a/src/xfce_theme_draw.c
+++ b/src/xfce_theme_draw.c
@@ -400,7 +400,7 @@ static void draw_shadow(GtkStyle * style, GdkWindow * window, GtkStateType state
         /* Get the background color from the parent widget.
          * This makes a nicer corner if the background colors differ.
          */
-        pstyle = gtk_widget_get_style(widget);
+        pstyle = gtk_widget_get_style(parent);
         pbg = &pstyle->bg[gtk_widget_get_state(parent)];
     }
     else

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


More information about the Xfce4-commits mailing list