]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/nativewin.cpp
Fix deprecating warning introduced in r72446.
[wxWidgets.git] / src / gtk / nativewin.cpp
index 99ded721f8bfe233f42119bc7cd11040b4535ed4..d95d98094d9d49a4c719114ac3d328866649c44d 100644 (file)
@@ -96,7 +96,11 @@ bool wxNativeContainerWindow::Create(wxNativeContainerWindowId anid)
 {
     bool rc;
 #ifdef __WXGTK3__
 {
     bool rc;
 #ifdef __WXGTK3__
+#ifdef GDK_WINDOWING_X11
     GdkWindow * const win = gdk_x11_window_foreign_new_for_display(gdk_display_get_default(), anid);
     GdkWindow * const win = gdk_x11_window_foreign_new_for_display(gdk_display_get_default(), anid);
+#else
+    GdkWindow * const win = NULL;
+#endif
 #else
     GdkWindow * const win = gdk_window_foreign_new(anid);
 #endif
 #else
     GdkWindow * const win = gdk_window_foreign_new(anid);
 #endif