]> git.saurik.com Git - wxWidgets.git/commitdiff
Commited fix for wrong background colour in TLWs. I don't
authorRobert Roebling <robert@roebling.de>
Sun, 20 Feb 2005 19:35:40 +0000 (19:35 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 20 Feb 2005 19:35:40 +0000 (19:35 +0000)
   know if this will play well with themes. Alternatively,
   one could change one of the few lines below to parent == this;

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp
src/gtk1/window.cpp

index 2ffbc1a024f8dc9040098ccbff15c03f786e5146..558f67a6997276179c915195bcf2d7e03222867e 100644 (file)
@@ -3971,7 +3971,7 @@ void wxWindowGTK::GtkSendPaintEvents()
     // widget to draw on
     GtkPizza *pizza = GTK_PIZZA (m_wxwindow);
 
-    if (GetThemeEnabled() && GetBackgroundStyle() == wxBG_STYLE_SYSTEM)
+    if (GetThemeEnabled() && (GetBackgroundStyle() == wxBG_STYLE_SYSTEM) && !IsTopLevel())
     {
         // find ancestor from which to steal background
         wxWindow *parent = GetParent();
index 2ffbc1a024f8dc9040098ccbff15c03f786e5146..558f67a6997276179c915195bcf2d7e03222867e 100644 (file)
@@ -3971,7 +3971,7 @@ void wxWindowGTK::GtkSendPaintEvents()
     // widget to draw on
     GtkPizza *pizza = GTK_PIZZA (m_wxwindow);
 
-    if (GetThemeEnabled() && GetBackgroundStyle() == wxBG_STYLE_SYSTEM)
+    if (GetThemeEnabled() && (GetBackgroundStyle() == wxBG_STYLE_SYSTEM) && !IsTopLevel())
     {
         // find ancestor from which to steal background
         wxWindow *parent = GetParent();