[gtk/zbrown/dragsource-in-handle: 1/2] widget: handle drag source




commit 9be062f5f485162ff7169c80bab7b3136f5bbd55
Author: Zander Brown <zbrown gnome org>
Date:   Thu Dec 24 00:33:22 2020 +0000

    widget: handle drag source
    
    Message a bit TODO, see Alexander Mikhaylenko

 gtk/gtkwidget.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index b26103e87b..0a4bc212c7 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -41,6 +41,7 @@
 #include "gtkcssstylepropertyprivate.h"
 #include "gtkcsswidgetnodeprivate.h"
 #include "gtkdebug.h"
+#include "gtkdragsource.h"
 #include "gtkgesturedrag.h"
 #include "gtkgestureprivate.h"
 #include "gtkgesturesingle.h"
@@ -11345,7 +11346,8 @@ gtk_widget_consumes_motion (GtkWidget        *widget,
 
           if ((!GTK_IS_GESTURE_SINGLE (controller) ||
                GTK_IS_GESTURE_DRAG (controller) ||
-               GTK_IS_GESTURE_SWIPE (controller)) &&
+               GTK_IS_GESTURE_SWIPE (controller) ||
+               GTK_IS_DRAG_SOURCE (controller)) &&
               gtk_gesture_handles_sequence (GTK_GESTURE (controller), sequence))
             return TRUE;
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]