Compare commits

...

2 Commits

Author SHA1 Message Date
Zander Brown
60d17a33d6 docs: it's GdkDrag, not GtkDrag 2020-12-24 00:35:17 +00:00
Zander Brown
9be062f5f4 widget: handle drag source
Message a bit TODO, see Alexander Mikhaylenko
2020-12-24 00:33:22 +00:00
2 changed files with 4 additions and 2 deletions

View File

@@ -103,7 +103,7 @@
* |[<!-- language="C" -->
* static void
* on_drag_begin (GtkDragSource *source,
* GtkDrag *drag,
* GdkDrag *drag,
* MyWidget *self)
* {
* // Set the widget as the drag icon

View File

@@ -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;
}