summaryrefslogtreecommitdiff
path: root/gtk/gtkiconview.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2020-02-16 19:52:17 +0100
committerBenjamin Otte <otte@redhat.com>2020-02-17 04:04:21 +0100
commit80ba7fd6823b34d8c6153f341e103ad6ea146ffd (patch)
tree8b8babfeb2545990ee2a8eb1b356db21ea927f80 /gtk/gtkiconview.c
parent91d91a29e834a3802a8bdefe417f277f8ef57737 (diff)
downloadgtk+-80ba7fd6823b34d8c6153f341e103ad6ea146ffd.tar.gz
dragdest: Make gtk_drop_target_new() args be transfer full
Saves tons of code.
Diffstat (limited to 'gtk/gtkiconview.c')
-rw-r--r--gtk/gtkiconview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 1cd7b1c3a7..10b86fa642 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -6453,7 +6453,7 @@ gtk_icon_view_enable_model_drag_dest (GtkIconView *icon_view,
g_return_val_if_fail (GTK_IS_ICON_VIEW (icon_view), NULL);
GtkCssNode *widget_node;
- icon_view->priv->dest = gtk_drop_target_new (formats, actions);
+ icon_view->priv->dest = gtk_drop_target_new (gdk_content_formats_ref (formats), actions);
g_signal_connect (icon_view->priv->dest, "drag-leave", G_CALLBACK (gtk_icon_view_drag_leave), icon_view);
g_signal_connect (icon_view->priv->dest, "drag-motion", G_CALLBACK (gtk_icon_view_drag_motion), icon_view);
g_signal_connect (icon_view->priv->dest, "drag-drop", G_CALLBACK (gtk_icon_view_drag_drop), icon_view);