Simplify sidebar DnD

This commit is contained in:
Přemysl Eric Janouch 2022-02-14 04:28:03 +01:00
parent 2a73e46315
commit 1a8c461af2
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 1 additions and 4 deletions

View File

@ -189,12 +189,9 @@ create_row(FivSidebar *self, GFile *file, const char *icon_name)
GTK_REVEALER(revealer), GTK_REVEALER_TRANSITION_TYPE_NONE); GTK_REVEALER(revealer), GTK_REVEALER_TRANSITION_TYPE_NONE);
gtk_container_add(GTK_CONTAINER(revealer), rowbox); 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(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_drag_source_set_icon_name(revealer, "inode-directory-symbolic");
gtk_target_list_unref(target_list);
GtkWidget *row = gtk_list_box_row_new(); GtkWidget *row = gtk_list_box_row_new();
g_object_set_qdata_full(G_OBJECT(row), fiv_sidebar_location_quark(), g_object_set_qdata_full(G_OBJECT(row), fiv_sidebar_location_quark(),