[gtk+/gtk-3-22] gtkdnd: Remove unnecessary call



commit eb57651ff7cc58efca7f9175e8a6f9ab16954f75
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Nov 24 16:24:04 2016 +0100

    gtkdnd: Remove unnecessary call
    
    drag-data-delete is emitted based on the interchange of the
    DELETE atom, which may well be set or bypassed locally by
    the app. As such emitting it here is not right, the other
    paths handling the DELETE atom interchange are still valid
    and there.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774726

 gtk/gtkdnd.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index c9f34e2..2ed9b78 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -3030,13 +3030,6 @@ gtk_drag_context_dnd_finished_cb (GdkDragContext    *context,
                        info->proxy_dest->proxy_drop_time);
     }
 
-  if (gdk_drag_context_get_selected_action (context) == GDK_ACTION_MOVE)
-    {
-      g_signal_emit_by_name (info->widget,
-                             "drag-data-delete",
-                             context);
-    }
-
   gtk_drag_source_info_destroy (info);
 }
 


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