diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-08-08 13:47:23 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-08-08 14:11:29 -0400 |
commit | 4eaf08e964f17b904bc759400f07180efeb8108c (patch) | |
tree | a19aabdb8ae526906eff9e5407fcef1ef2cd8a81 | |
parent | 2d5b44703cf80f8731606def434fb379eb424432 (diff) | |
download | gtk+-4eaf08e964f17b904bc759400f07180efeb8108c.tar.gz |
placessidebar: Fix bookmarks dnd
We were not handling drops of bookmarks correctly,
leading to criticals during DND.
Fixes: #3037
-rw-r--r-- | gtk/gtkplacessidebar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index 531dd0e176..f72301e60f 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -1846,7 +1846,7 @@ drag_drop_callback (GtkDropTarget *target, if (G_VALUE_HOLDS (value, GTK_TYPE_SIDEBAR_ROW)) { - GtkWidget **source_row; + GtkWidget *source_row; /* A bookmark got reordered */ if (target_section_type != SECTION_BOOKMARKS) goto out; @@ -1856,7 +1856,7 @@ drag_drop_callback (GtkDropTarget *target, 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); + reorder_bookmarks (sidebar, GTK_SIDEBAR_ROW (source_row), target_order_index); result = TRUE; } else if (G_VALUE_HOLDS (value, GDK_TYPE_FILE_LIST)) |