X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fac4253c6f9c86d1aee264311b82404cd425ca10..051b55ad8ba1efe5f7c16c430131d4cd1b5fb90e:/src/gtk/tbargtk.cpp diff --git a/src/gtk/tbargtk.cpp b/src/gtk/tbargtk.cpp index 0f80c3f2a9..dbfbd85915 100644 --- a/src/gtk/tbargtk.cpp +++ b/src/gtk/tbargtk.cpp @@ -162,6 +162,11 @@ bool wxToolBar::Create( wxWindow *parent, wxWindowID id, m_widget = gtk_handle_box_new(); 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 { @@ -169,6 +174,11 @@ bool wxToolBar::Create( wxWindow *parent, wxWindowID id, } gtk_toolbar_set_tooltips( GTK_TOOLBAR(m_toolbar), TRUE ); + +#if (GTK_MINOR_VERSION > 0) + if (style & wxTB_FLAT) + gtk_toolbar_set_button_relief( GTK_TOOLBAR(m_toolbar), GTK_RELIEF_NONE ); +#endif m_fg = new GdkColor; m_fg->red = 0;