]> git.saurik.com Git - wxWidgets.git/commitdiff
wxGTK now ignores widget style when using the pixmap theme.
authorRobert Roebling <robert@roebling.de>
Tue, 15 Feb 2000 18:01:16 +0000 (18:01 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 15 Feb 2000 18:01:16 +0000 (18:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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

index 52aa11a202b4a625da28e9218ae75813bb4524d8..bd85f4f6a252af70362d28001d50208ffd29ac70 100644 (file)
@@ -567,7 +567,7 @@ int wxEntry( int argc, char *argv[] )
         (gtk_minor_version == 2) &&
         (gtk_micro_version < 4))
     {
-        printf( "wxWindows warning: Disabled GUI threading due to outdated GTK version\n" );
+        printf( "wxWindows warning: GUI threading disabled due to outdated GTK version\n" );
     }
     else
     {
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 ))
index 52aa11a202b4a625da28e9218ae75813bb4524d8..bd85f4f6a252af70362d28001d50208ffd29ac70 100644 (file)
@@ -567,7 +567,7 @@ int wxEntry( int argc, char *argv[] )
         (gtk_minor_version == 2) &&
         (gtk_micro_version < 4))
     {
-        printf( "wxWindows warning: Disabled GUI threading due to outdated GTK version\n" );
+        printf( "wxWindows warning: GUI threading disabled due to outdated GTK version\n" );
     }
     else
     {
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 ))