]> git.saurik.com Git - wxWidgets.git/commitdiff
Allow for older GTK+ versions
authorJulian Smart <julian@anthemion.co.uk>
Tue, 25 Jun 2013 14:55:48 +0000 (14:55 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 25 Jun 2013 14:55:48 +0000 (14:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/win_gtk.cpp

index 9d05f09a5d3d5e82f080c956521c7a96b4e46f28..0e7951bde77ba3c4169fed0e60a56f76cb3735f9 100644 (file)
@@ -381,7 +381,11 @@ void wxPizza::put(GtkWidget* widget, int x, int y, int width, int height)
 {
     // Re-parenting a TLW under a child window is possible at wx level but
     // using a TLW as child at GTK+ level results in problems, so don't do it.
+#if GTK_CHECK_VERSION(2,19,3)
     if (!gtk_widget_is_toplevel(GTK_WIDGET(widget)))
+#else
+    if (!GTK_WIDGET_TOPLEVEL(GTK_WIDGET(widget)))
+#endif
         gtk_fixed_put(GTK_FIXED(this), widget, 0, 0);
 
     wxPizzaChild* child = new wxPizzaChild;