Commit f7eb7efe authored by Nelson Benítez León's avatar Nelson Benítez León Committed by Daniel Boles

gtkplacessidebar.c: move bookmark at the placeholder index

As that index is set in drag_motion_callback() and visually shown
on the widget as a drop target hint.

https://bugzilla.gnome.org/show_bug.cgi?id=787356
#904
parent eb821cb8
Pipeline #46535 passed with stage
in 9 minutes
......@@ -2084,6 +2084,9 @@ drag_data_received_callback (GtkWidget *list_box,
source_row = (void*) gtk_selection_data_get_data (selection_data);
if (sidebar->row_placeholder != NULL)
g_object_get (sidebar->row_placeholder, "order-index", &target_order_index, NULL);
reorder_bookmarks (sidebar, GTK_SIDEBAR_ROW (*source_row), target_order_index);
success = TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment