diff options
author | Federico Mena Quintero <federico@gnome.org> | 2013-04-20 12:30:48 -0400 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2013-04-20 14:53:03 -0400 |
commit | 9c38ff7dfbcd255a29ca3ce78c571bac6a5ea074 (patch) | |
tree | 27b2dff56fbd84f8b7e5b49687bea4ff55189da4 /gtk/gtkplacessidebar.c | |
parent | 3083308d1cd6825604669b41639e94540a93b26d (diff) | |
download | gtk+-9c38ff7dfbcd255a29ca3ce78c571bac6a5ea074.tar.gz |
Drop in the right place when the feedback row is active
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Diffstat (limited to 'gtk/gtkplacessidebar.c')
-rw-r--r-- | gtk/gtkplacessidebar.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index 33acbfee7c..35e218372f 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -1312,7 +1312,7 @@ compute_drop_position (GtkTreeView *tree_view, goto out; } - /* Never drop on headings, but special case the bookmarks heading, +o /* Never drop on headings, but special case the bookmarks heading, * so we can drop bookmarks in between it and the first bookmark. */ if (place_type == PLACES_HEADING @@ -1795,7 +1795,9 @@ drag_data_received_callback (GtkWidget *widget, position++; if (tree_pos == GTK_TREE_VIEW_DROP_BEFORE - || tree_pos == GTK_TREE_VIEW_DROP_AFTER) { + || tree_pos == GTK_TREE_VIEW_DROP_AFTER + || place_type == PLACES_DROP_FEEDBACK) { + remove_drop_bookmark_feedback_row (sidebar); drop_files_as_bookmarks (sidebar, source_file_list, position); success = TRUE; drop_as_bookmarks = TRUE; @@ -1825,6 +1827,7 @@ drag_data_received_callback (GtkWidget *widget, out: sidebar->drop_occured = FALSE; free_drag_data (sidebar); + remove_drop_bookmark_feedback_row (sidebar); gtk_drag_finish (context, success, FALSE, time); gtk_tree_path_free (tree_path); |