wxUniv compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3982,9 +3982,7 @@ void wxWindowGTK::GtkSendPaintEvents()
|
|||||||
if (GetThemeEnabled() && (GetBackgroundStyle() == wxBG_STYLE_SYSTEM))
|
if (GetThemeEnabled() && (GetBackgroundStyle() == wxBG_STYLE_SYSTEM))
|
||||||
{
|
{
|
||||||
// find ancestor from which to steal background
|
// find ancestor from which to steal background
|
||||||
wxWindow *parent = IsTopLevel() ? this : GetParent();
|
wxWindow *parent = wxGetTopLevelParent((wxWindow *)this);
|
||||||
while (parent && !parent->IsTopLevel())
|
|
||||||
parent = parent->GetParent();
|
|
||||||
if (!parent)
|
if (!parent)
|
||||||
parent = (wxWindow*)this;
|
parent = (wxWindow*)this;
|
||||||
|
|
||||||
|
@@ -3982,9 +3982,7 @@ void wxWindowGTK::GtkSendPaintEvents()
|
|||||||
if (GetThemeEnabled() && (GetBackgroundStyle() == wxBG_STYLE_SYSTEM))
|
if (GetThemeEnabled() && (GetBackgroundStyle() == wxBG_STYLE_SYSTEM))
|
||||||
{
|
{
|
||||||
// find ancestor from which to steal background
|
// find ancestor from which to steal background
|
||||||
wxWindow *parent = IsTopLevel() ? this : GetParent();
|
wxWindow *parent = wxGetTopLevelParent((wxWindow *)this);
|
||||||
while (parent && !parent->IsTopLevel())
|
|
||||||
parent = parent->GetParent();
|
|
||||||
if (!parent)
|
if (!parent)
|
||||||
parent = (wxWindow*)this;
|
parent = (wxWindow*)this;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user