]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for gtk 1.0.x
authorKarsten Ballüder <ballueder@usa.net>
Mon, 3 May 1999 14:28:51 +0000 (14:28 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Mon, 3 May 1999 14:28:51 +0000 (14:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/tbargtk.cpp
src/gtk1/tbargtk.cpp

index 21dbab1dec3c9a3d765d22bd707969e36709924b..dbfbd859156774e9eaf5d452759a85dfd6601c2d 100644 (file)
@@ -163,8 +163,10 @@ bool wxToolBar::Create( wxWindow *parent, wxWindowID id,
        gtk_container_add( GTK_CONTAINER(m_widget), GTK_WIDGET(m_toolbar) );
        gtk_widget_show( GTK_WIDGET(m_toolbar) );
        
+#if (GTK_MINOR_VERSION > 0)
        if (style & wxTB_FLAT)
             gtk_handle_box_set_shadow_type( GTK_HANDLE_BOX(m_widget), GTK_SHADOW_NONE );
+#endif
     }
     else
     {     
index 21dbab1dec3c9a3d765d22bd707969e36709924b..dbfbd859156774e9eaf5d452759a85dfd6601c2d 100644 (file)
@@ -163,8 +163,10 @@ bool wxToolBar::Create( wxWindow *parent, wxWindowID id,
        gtk_container_add( GTK_CONTAINER(m_widget), GTK_WIDGET(m_toolbar) );
        gtk_widget_show( GTK_WIDGET(m_toolbar) );
        
+#if (GTK_MINOR_VERSION > 0)
        if (style & wxTB_FLAT)
             gtk_handle_box_set_shadow_type( GTK_HANDLE_BOX(m_widget), GTK_SHADOW_NONE );
+#endif
     }
     else
     {