]> git.saurik.com Git - wxWidgets.git/commitdiff
Skip the event to allow further child processing
authorJulian Smart <julian@anthemion.co.uk>
Sat, 27 Oct 2007 17:37:54 +0000 (17:37 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 27 Oct 2007 17:37:54 +0000 (17:37 +0000)
Don't change the background colour explicitly on wxGTK

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dlgcmn.cpp

index 92417acc0e216b8395b6ad3b78c9732c098ae6b7..8e771902ba1f6750310a03a8e716a93505d26c4e 100644 (file)
@@ -448,8 +448,12 @@ void wxDialogBase::OnCloseWindow(wxCloseEvent& WXUNUSED(event))
     closing.DeleteObject(this);
 }
 
-void wxDialogBase::OnSysColourChanged(wxSysColourChangedEvent& WXUNUSED(event))
+void wxDialogBase::OnSysColourChanged(wxSysColourChangedEvent& event)
 {
-  SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
-  Refresh();
+#ifndef __WXGTK__
+    SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
+    Refresh();
+#endif
+
+    event.Skip();
 }