Don't inherit background from parent if we're top-level
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
26da541358
commit
aac97549ab
@ -3977,10 +3977,10 @@ void wxWindowGTK::GtkSendPaintEvents()
|
||||
// widget to draw on
|
||||
GtkPizza *pizza = GTK_PIZZA (m_wxwindow);
|
||||
|
||||
if (GetThemeEnabled() && (GetBackgroundStyle() == wxBG_STYLE_SYSTEM) && !IsTopLevel())
|
||||
if (GetThemeEnabled() && (GetBackgroundStyle() == wxBG_STYLE_SYSTEM))
|
||||
{
|
||||
// find ancestor from which to steal background
|
||||
wxWindow *parent = GetParent();
|
||||
wxWindow *parent = IsTopLevel() ? this : GetParent();
|
||||
while (parent && !parent->IsTopLevel())
|
||||
parent = parent->GetParent();
|
||||
if (!parent)
|
||||
|
@ -3977,10 +3977,10 @@ void wxWindowGTK::GtkSendPaintEvents()
|
||||
// widget to draw on
|
||||
GtkPizza *pizza = GTK_PIZZA (m_wxwindow);
|
||||
|
||||
if (GetThemeEnabled() && (GetBackgroundStyle() == wxBG_STYLE_SYSTEM) && !IsTopLevel())
|
||||
if (GetThemeEnabled() && (GetBackgroundStyle() == wxBG_STYLE_SYSTEM))
|
||||
{
|
||||
// find ancestor from which to steal background
|
||||
wxWindow *parent = GetParent();
|
||||
wxWindow *parent = IsTopLevel() ? this : GetParent();
|
||||
while (parent && !parent->IsTopLevel())
|
||||
parent = parent->GetParent();
|
||||
if (!parent)
|
||||
|
Loading…
Reference in New Issue
Block a user