+#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2, 4, 0)
+ case wxSYS_DCLICK_X:
+ case wxSYS_DCLICK_Y:
+ gint dclick_distance;
+ g_object_get(gtk_settings_get_default(), "gtk-double-click-distance", &dclick_distance, NULL);
+ return dclick_distance * 2;
+#endif
+
+#if defined(__WXGTK20__)
+ case wxSYS_DRAG_X:
+ case wxSYS_DRAG_Y:
+ gint drag_threshold;
+ g_object_get(gtk_settings_get_default(), "gtk-dnd-drag-threshold", &drag_threshold, NULL);
+ return drag_threshold * 2;
+#endif
+