From 4adb6d28f77c4cb6f8076b9853f5b426299a4dfc Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sun, 20 Feb 2005 19:35:40 +0000 Subject: [PATCH] Commited fix for wrong background colour in TLWs. I don't 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 | 2 +- src/gtk1/window.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 2ffbc1a024..558f67a699 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -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(); diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index 2ffbc1a024..558f67a699 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -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(); -- 2.47.2