X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/15475ced8819ab9fe6ababa609811399bfb45a43..b8e7f410db9db16af7661ac0b2813ca0406c2be2:/src/gtk1/window.cpp diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index a6d5457225..ab35ae0f20 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -1537,7 +1537,8 @@ static gint gtk_window_button_press_callback( GtkWidget *widget, wxEventType event_type = wxEVT_NULL; -#ifdef __WXGTK20__ + // GdkDisplay is a GTK+ 2.1.0 thing +#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2, 1, 0) if ( gdk_event->type == GDK_2BUTTON_PRESS && gdk_event->button >= 1 && gdk_event->button <= 3 ) {