From ec765b2492aae6439536a880962091a3c3771611 Mon Sep 17 00:00:00 2001 From: Cody Russell Date: Mon, 27 Aug 2007 16:27:38 +0000 Subject: [PATCH] Correct draw_box() function to check detail for "notebook". This fixes a 2007-08-27 Cody Russell * 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 --- ChangeLog | 7 +++++++ modules/engines/ms-windows/msw_style.c | 11 +++++++++++ 2 files changed, 18 insertions(+) diff --git a/ChangeLog b/ChangeLog index e1ea4577b9..7b948325ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-08-27 Cody Russell + + * 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) + 2007-08-23 Cody Russell * gtk/gtkwindow.c (gtk_window_group_remove_window: Use the diff --git a/modules/engines/ms-windows/msw_style.c b/modules/engines/ms-windows/msw_style.c index bc490a75fd..2b0e822b18 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);