[Xfce4-commits] <gtk-xfce-engine:peter/refresh> Use parent style for retrieving the background.
Peter de Ridder
noreply at xfce.org
Thu Jan 9 22:06:01 CET 2014
Updating branch refs/heads/peter/refresh
to 8c34d1b897fd622b8dc52234030ece763c33f142 (commit)
from 4d040a1e3b6a82c86399819261944b88d93b99ea (commit)
commit 8c34d1b897fd622b8dc52234030ece763c33f142
Author: Peter de Ridder <peter at xfce.org>
Date: Thu Jan 9 22:11:32 2014 +0100
Use parent style for retrieving the background.
gtk-2.0/xfce_theme_draw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gtk-2.0/xfce_theme_draw.c b/gtk-2.0/xfce_theme_draw.c
index b1eff5b..4226d25 100644
--- a/gtk-2.0/xfce_theme_draw.c
+++ b/gtk-2.0/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
More information about the Xfce4-commits
mailing list