[gtk+/wip/matthiasc/no-unmanaged-dnd] Stop handling source-side dnd events
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/no-unmanaged-dnd] Stop handling source-side dnd events
- Date: Wed, 23 Aug 2017 23:15:38 +0000 (UTC)
commit 97fbb5d24eeaf53ca64206baaae79ae8abd8db2b
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Aug 23 19:14:10 2017 -0400
Stop handling source-side dnd events
These are now all consumed by the managed dnd implementation
at the gdk level, and are only propagated as signals on
the drag context.
gtk/gtkdnd.c | 14 --------------
gtk/gtkdndprivate.h | 2 --
gtk/gtkmain.c | 3 ++-
3 files changed, 2 insertions(+), 17 deletions(-)
---
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 605bc20..13cbe71 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -1453,20 +1453,6 @@ gtk_drag_set_icon_default (GdkDragContext *context)
gtk_drag_set_icon_name (context, "text-x-generic", -2, -2);
}
-/*
- * _gtk_drag_source_handle_event:
- * @toplevel: Toplevel widget that received the event
- * @event: the event to handle
- *
- * Called from widget event handling code on Drag events
- * for drag sources.
- */
-void
-_gtk_drag_source_handle_event (GtkWidget *widget,
- GdkEvent *event)
-{
-}
-
static void
gtk_drag_source_check_selection (GtkDragSourceInfo *info,
GdkAtom selection,
diff --git a/gtk/gtkdndprivate.h b/gtk/gtkdndprivate.h
index 86e1c23..771d66a 100644
--- a/gtk/gtkdndprivate.h
+++ b/gtk/gtkdndprivate.h
@@ -52,8 +52,6 @@ void gtk_drag_set_icon_definition (GdkDragContext
GtkImageDefinition *def,
gint hot_x,
gint hot_y);
-void _gtk_drag_source_handle_event (GtkWidget *widget,
- GdkEvent *event);
void _gtk_drag_dest_handle_event (GtkWidget *toplevel,
GdkEvent *event);
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 4364e79..2c0a6f2 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1846,7 +1846,8 @@ gtk_main_do_event (GdkEvent *event)
case GDK_DRAG_STATUS:
case GDK_DROP_FINISHED:
- _gtk_drag_source_handle_event (event_widget, event);
+ g_warning ("These events are no longer handled by GTK+.\n"
+ "DND needs to be managed by the backend");
break;
case GDK_DRAG_ENTER:
case GDK_DRAG_LEAVE:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]