[gtk+] placessidebar: Do not set as a "track motion" DnD site



commit 8c9e426dc50011fabf060206ac53eb4b347fa01a
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Jul 1 18:50:22 2015 +0200

    placessidebar: Do not set as a "track motion" DnD site
    
    It has the unintended effect of picking the suggested action from the
    context, which conflicts with the (possibly 0) status we set on our
    ::drag-motion handler.
    
    Given this widget is not interested in listening to DnD from every
    possible target, it is safe to just disable it.

 gtk/gtkplacessidebar.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 1344e42..0a19fa8 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -3766,8 +3766,6 @@ gtk_places_sidebar_init (GtkPlacesSidebar *sidebar)
   sidebar->source_targets = gtk_target_list_new (dnd_source_targets, G_N_ELEMENTS (dnd_source_targets));
   gtk_target_list_add_text_targets (sidebar->source_targets, 0);
 
-  gtk_drag_dest_set_track_motion (GTK_WIDGET (sidebar->list_box), TRUE);
-
   g_signal_connect (sidebar->list_box, "motion-notify-event",
                     G_CALLBACK (on_motion_notify_event), sidebar);
   g_signal_connect (sidebar->list_box, "drag-begin",


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