From: Karsten Ballüder Date: Mon, 3 May 1999 14:28:51 +0000 (+0000) Subject: fix for gtk 1.0.x X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b0795d4568eeda9b9f5a57705d7aa4c18675faef?hp=858b5bddf67a137c09cd1ac63820a02a4dc3efb3 fix for gtk 1.0.x git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/tbargtk.cpp b/src/gtk/tbargtk.cpp index 21dbab1dec..dbfbd85915 100644 --- a/src/gtk/tbargtk.cpp +++ b/src/gtk/tbargtk.cpp @@ -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 { diff --git a/src/gtk1/tbargtk.cpp b/src/gtk1/tbargtk.cpp index 21dbab1dec..dbfbd85915 100644 --- a/src/gtk1/tbargtk.cpp +++ b/src/gtk1/tbargtk.cpp @@ -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 {