summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCody Russell <bratsche@gnome.org>2007-08-27 16:27:38 +0000
committerCody Russell <bratsche@src.gnome.org>2007-08-27 16:27:38 +0000
commitec765b2492aae6439536a880962091a3c3771611 (patch)
tree1b8a27c694c66625c326a226bbf1a500e5727029 /modules
parent6bcbcf061b8c299c3742883f9821d402e85f2bdd (diff)
downloadgdk-pixbuf-ec765b2492aae6439536a880962091a3c3771611.tar.gz
Correct draw_box() function to check detail for "notebook". This fixes a
2007-08-27 Cody Russell <bratsche@gnome.org> * modules/engines/ms-windows/msw_style.c: Correct draw_box() function to check detail for "notebook". This fixes a problem where notebooks without visible headers were not styling correctly. (#470033, Daniel Atallah and Cody Russell) svn path=/trunk/; revision=18689
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/engines/ms-windows/msw_style.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/engines/ms-windows/msw_style.c b/modules/engines/ms-windows/msw_style.c
index bc490a75f..2b0e822b1 100755
--- a/modules/engines/ms-windows/msw_style.c
+++ b/modules/engines/ms-windows/msw_style.c
@@ -2155,6 +2155,17 @@ draw_box (GtkStyle * style,
return;
}
}
+ else if (detail && !strcmp (detail, "notebook") && GTK_IS_NOTEBOOK (widget))
+ {
+ GtkNotebook *notebook = GTK_NOTEBOOK (widget);
+
+ if (xp_theme_draw (window, XP_THEME_ELEMENT_TAB_PANE, style,
+ x, y, width, height, state_type, area))
+ {
+ return;
+ }
+ }
+
else
{
const gchar *name = gtk_widget_get_name (widget);