X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4775836d3736c6a4ac84d6427c4c619134816530..7e81e3a796eec142428ca04b44015956031eeb0f:/src/gtk/win_gtk.cpp?ds=sidebyside diff --git a/src/gtk/win_gtk.cpp b/src/gtk/win_gtk.cpp index 9d05f09a5d..0e7951bde7 100644 --- a/src/gtk/win_gtk.cpp +++ b/src/gtk/win_gtk.cpp @@ -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;