aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-02-14 04:28:03 +0100
committerPřemysl Eric Janouch <p@janouch.name>2022-02-19 23:13:35 +0100
commit1a8c461af2a1c6447a96a9becffb224bb64bad99 (patch)
tree0a7906590222b32d1a8d05253055f89fd8b45706
parent2a73e463151f4105fe60730c9163af305c30ca87 (diff)
downloadfiv-1a8c461af2a1c6447a96a9becffb224bb64bad99.tar.gz
fiv-1a8c461af2a1c6447a96a9becffb224bb64bad99.tar.xz
fiv-1a8c461af2a1c6447a96a9becffb224bb64bad99.zip
Simplify sidebar DnD
-rw-r--r--fiv-sidebar.c5
1 files changed, 1 insertions, 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(),