]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/window.cpp
wxGTK now ignores widget style when using the pixmap theme.
[wxWidgets.git] / src / gtk / window.cpp
index 7eba3ad0a08ab5acc5fcf11711fc94f2f64cbe61..13b9e503133d1e49c1c085b8d2003d7bf30a7294 100644 (file)
@@ -3040,6 +3040,18 @@ GtkStyle *wxWindow::GetWidgetStyle()
 
 void wxWindow::SetWidgetStyle()
 {
+    if (m_widget->style->engine_data)
+    {
+        static bool s_warningPrinted = FALSE;
+        if (!s_warningPrinted)
+        {
+            printf( "wxWindows warning: Widget styles disabled due to buggy GTK theme.\n" );
+            s_warningPrinted = TRUE;
+        }
+        m_widgetStyle = m_widget->style;
+        return;
+    }
+
     GtkStyle *style = GetWidgetStyle();
 
     if (m_font != wxSystemSettings::GetSystemFont( wxSYS_DEFAULT_GUI_FONT ))