]> git.saurik.com Git - wxWidgets.git/commitdiff
it's OK to set background,foreground colour even with theming now
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 17 Jun 2004 17:01:51 +0000 (17:01 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 17 Jun 2004 17:01:51 +0000 (17:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp
src/gtk1/window.cpp

index a1b9f5657b136fd3bfa75c3b8a8284bf384f237e..171eecae9d13839e1ab4914cdce9b9171ff9df9e 100644 (file)
@@ -2307,10 +2307,10 @@ gtk_window_realized_callback( GtkWidget *m_widget, wxWindow *win )
     if (g_isIdle)
         wxapp_install_idle_handler();
         
-    if (win->m_delayedBackgroundColour && !win->GetThemeEnabled())
+    if (win->m_delayedBackgroundColour)
         win->GtkSetBackgroundColour( win->GetBackgroundColour() );
 
-    if (win->m_delayedForegroundColour && !win->GetThemeEnabled())
+    if (win->m_delayedForegroundColour)
         win->GtkSetForegroundColour( win->GetForegroundColour() );
 
 #ifdef __WXGTK20__
index a1b9f5657b136fd3bfa75c3b8a8284bf384f237e..171eecae9d13839e1ab4914cdce9b9171ff9df9e 100644 (file)
@@ -2307,10 +2307,10 @@ gtk_window_realized_callback( GtkWidget *m_widget, wxWindow *win )
     if (g_isIdle)
         wxapp_install_idle_handler();
         
-    if (win->m_delayedBackgroundColour && !win->GetThemeEnabled())
+    if (win->m_delayedBackgroundColour)
         win->GtkSetBackgroundColour( win->GetBackgroundColour() );
 
-    if (win->m_delayedForegroundColour && !win->GetThemeEnabled())
+    if (win->m_delayedForegroundColour)
         win->GtkSetForegroundColour( win->GetForegroundColour() );
 
 #ifdef __WXGTK20__