]> git.saurik.com Git - wxWidgets.git/commitdiff
must use deprecated function for gtk2
authorPaul Cornett <paulcor@bullseye.com>
Tue, 29 Mar 2011 17:49:36 +0000 (17:49 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Tue, 29 Mar 2011 17:49:36 +0000 (17:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/win_gtk.cpp

index 2d599c12b727749c8daee5151063dbdbac7de50b..bf4bd7fc2d6c7b080b277aeeeee5e026993d901b 100644 (file)
@@ -236,7 +236,7 @@ GtkWidget* wxPizza::New(long windowStyle)
     pizza->m_is_scrollable = (windowStyle & (wxHSCROLL | wxVSCROLL)) != 0;
     // mask off border styles not useable with wxPizza
     pizza->m_border_style = int(windowStyle & BORDER_STYLES);
-#if GTK_CHECK_VERSION(2,20,0)
+#if GTK_CHECK_VERSION(3,0,0) || defined(GTK_DISABLE_DEPRECATED)
     gtk_widget_set_has_window(widget, true);
 #else
     gtk_fixed_set_has_window(GTK_FIXED(widget), true);