diff options
Diffstat (limited to 'gtk/gtktextview.c')
-rw-r--r-- | gtk/gtktextview.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 6f0bdb18bc..bece4d5839 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -32,6 +32,7 @@ #include "gtkadjustmentprivate.h" #include "gtkcsscolorvalueprivate.h" #include "gtkdebug.h" +#include "gtkdragsourceprivate.h" #include "gtkdropcontrollermotion.h" #include "gtkintl.h" #include "gtkmain.h" @@ -7232,7 +7233,7 @@ gtk_text_view_drag_gesture_update (GtkGestureDrag *gesture, /* If no data is attached, the initial press happened within the current * text selection, check for drag and drop to be initiated. */ - if (gtk_drag_check_threshold (GTK_WIDGET (text_view), start_x, start_y, x, y)) + if (gtk_drag_check_threshold_double (GTK_WIDGET (text_view), 0, 0, offset_x, offset_y)) { if (!is_touchscreen) { @@ -7366,7 +7367,7 @@ gtk_text_view_drag_gesture_end (GtkGestureDrag *gesture, gdk_device_get_source (device) == GDK_SOURCE_TOUCHSCREEN; if ((is_touchscreen || clicked_in_selection) && - !gtk_drag_check_threshold (GTK_WIDGET (text_view), start_x, start_y, x, y)) + !gtk_drag_check_threshold_double (GTK_WIDGET (text_view), 0, 0, offset_x, offset_y)) { GtkTextIter iter; |