diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-07-07 23:16:09 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-07-08 06:10:00 -0400 |
commit | 8e53a011885adc749dc67e3553f21f9fbe4404e3 (patch) | |
tree | 735c3b5ac7ce77bfc9927662781a9ad7c4b3645e | |
parent | 8756c03885a7dbeb6d075ab270112cf66079db3a (diff) | |
download | gtk+-8e53a011885adc749dc67e3553f21f9fbe4404e3.tar.gz |
places sidebar: Fix rows getting 'lost' when dnd fails
There was some code that lead to the places sidebar loosing track
of the row being dragged if a motion event came in between letting
go of the button and the drag snap-back animation ending. This would
cause us to not show the row again, giving the appearance that it
was 'lost'.
https://bugzilla.gnome.org/show_bug.cgi?id=751448
-rw-r--r-- | gtk/gtkplacessidebar.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index a591ea5da3..322b7f1542 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -1456,11 +1456,7 @@ on_motion_notify_event (GtkWidget *widget, return FALSE; if (!(event->state & GDK_BUTTON1_MASK)) - { - sidebar->drag_row = NULL; - - return FALSE; - } + return FALSE; if (gtk_drag_check_threshold (widget, sidebar->drag_root_x, sidebar->drag_root_y, |