[gtk/wip/nbenitezl/move-bookmark-placeholder-index-3] gtkplacessidebar.c: move bookmark at the placeholder index
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/nbenitezl/move-bookmark-placeholder-index-3] gtkplacessidebar.c: move bookmark at the placeholder index
- Date: Mon, 17 Dec 2018 19:18:29 +0000 (UTC)
commit f7eb7efeb57c2248917678dfa493760eff4187b2
Author: Nelson Benítez León <nbenitezl+gnome gmail com>
Date: Sat Oct 7 20:17:20 2017 +0500
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
https://gitlab.gnome.org/GNOME/gtk/issues/904
gtk/gtkplacessidebar.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 31b968d0f4..8a9feaaaa5 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]