remove SetBackgroundStyle call from OnInternalIdle, it should be done from realize...
authorPaul Cornett <paulcor@bullseye.com>
Thu, 22 Dec 2011 18:21:41 +0000 (18:21 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Thu, 22 Dec 2011 18:21:41 +0000 (18:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp

index fbbbd782e319f51b70cc4679ba4895d8ef4c7ce6..1a3f1065b08be29f2cee5a115802df9c3d02d80b 100644 (file)
@@ -2613,14 +2613,6 @@ void wxWindowGTK::OnInternalIdle()
         RealizeTabOrder();
     }
 
-    // Update style if the window was not yet realized when
-    // SetBackgroundStyle() was called
-    if (m_needsStyleChange)
-    {
-        SetBackgroundStyle(GetBackgroundStyle());
-        m_needsStyleChange = false;
-    }
-
     wxWindowBase::OnInternalIdle();
 }
 
@@ -3972,7 +3964,7 @@ bool wxWindowGTK::SetBackgroundStyle(wxBackgroundStyle style)
         }
         else // window not realized yet
         {
-            // Do in OnIdle, because the window is not yet available
+            // Do when window is realized
             m_needsStyleChange = true;
         }