From 1a8c461af2a1c6447a96a9becffb224bb64bad99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Mon, 14 Feb 2022 04:28:03 +0100 Subject: [PATCH] Simplify sidebar DnD --- fiv-sidebar.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fiv-sidebar.c b/fiv-sidebar.c index 16de0d4..e5c2c5b 100644 --- a/fiv-sidebar.c +++ b/fiv-sidebar.c @@ -189,12 +189,9 @@ create_row(FivSidebar *self, GFile *file, const char *icon_name) GTK_REVEALER(revealer), GTK_REVEALER_TRANSITION_TYPE_NONE); gtk_container_add(GTK_CONTAINER(revealer), rowbox); - GtkTargetList *target_list = gtk_target_list_new(NULL, 0); - gtk_target_list_add_uri_targets(target_list, 0); gtk_drag_source_set(revealer, GDK_BUTTON1_MASK, NULL, 0, GDK_ACTION_LINK); - gtk_drag_source_set_target_list(revealer, target_list); + gtk_drag_source_add_uri_targets(revealer); gtk_drag_source_set_icon_name(revealer, "inode-directory-symbolic"); - gtk_target_list_unref(target_list); GtkWidget *row = gtk_list_box_row_new(); g_object_set_qdata_full(G_OBJECT(row), fiv_sidebar_location_quark(),