git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32285
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// widget to draw on
GtkPizza *pizza = GTK_PIZZA (m_wxwindow);
// 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
{
// find ancestor from which to steal background
- wxWindow *parent = GetParent();
+ wxWindow *parent = IsTopLevel() ? this : GetParent();
while (parent && !parent->IsTopLevel())
parent = parent->GetParent();
if (!parent)
while (parent && !parent->IsTopLevel())
parent = parent->GetParent();
if (!parent)
// widget to draw on
GtkPizza *pizza = GTK_PIZZA (m_wxwindow);
// 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
{
// find ancestor from which to steal background
- wxWindow *parent = GetParent();
+ wxWindow *parent = IsTopLevel() ? this : GetParent();
while (parent && !parent->IsTopLevel())
parent = parent->GetParent();
if (!parent)
while (parent && !parent->IsTopLevel())
parent = parent->GetParent();
if (!parent)