X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/86bb7d48256bbca4b3e09c05125c3b6333a506ef..c9d9f242e45a5d8399d52f5709b560a63dd804fc:/src/generic/panelg.cpp diff --git a/src/generic/panelg.cpp b/src/generic/panelg.cpp index c58841ba5c..c26d67adbe 100644 --- a/src/generic/panelg.cpp +++ b/src/generic/panelg.cpp @@ -49,9 +49,10 @@ bool wxPanel::Create(wxWindow *parent, wxWindowID id, bool ret = wxWindow::Create(parent, id, pos, size, style, name); if ( ret ) { +#ifndef __WXGTK__ SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE)); - SetDefaultBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE)); SetFont(wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT)); +#endif } return ret; @@ -73,7 +74,6 @@ void wxPanel::SetFocus() void wxPanel::OnSysColourChanged(wxSysColourChangedEvent& event) { SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE)); - SetDefaultBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE)); Refresh(); // Propagate the event to the non-top-level children @@ -173,3 +173,4 @@ bool wxPanel::SetFocusToNextChild(wxNode *node, bool bForward) return TRUE; } +