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
// 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();
// 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();