diff options
author | Benjamin Otte <otte@redhat.com> | 2020-02-16 19:52:17 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2020-02-17 04:04:21 +0100 |
commit | 80ba7fd6823b34d8c6153f341e103ad6ea146ffd (patch) | |
tree | 8b8babfeb2545990ee2a8eb1b356db21ea927f80 /gtk/gtkexpander.c | |
parent | 91d91a29e834a3802a8bdefe417f277f8ef57737 (diff) | |
download | gtk+-80ba7fd6823b34d8c6153f341e103ad6ea146ffd.tar.gz |
dragdest: Make gtk_drop_target_new() args be transfer full
Saves tons of code.
Diffstat (limited to 'gtk/gtkexpander.c')
-rw-r--r-- | gtk/gtkexpander.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c index 720c167051..c8300240ab 100644 --- a/gtk/gtkexpander.c +++ b/gtk/gtkexpander.c @@ -348,7 +348,6 @@ gtk_expander_init (GtkExpander *expander) GtkExpanderPrivate *priv = gtk_expander_get_instance_private (expander); GtkGesture *gesture; GtkDropTarget *dest; - GdkContentFormats *formats; gtk_widget_set_can_focus (GTK_WIDGET (expander), TRUE); @@ -373,9 +372,7 @@ gtk_expander_init (GtkExpander *expander) gtk_widget_add_css_class (priv->arrow_widget, GTK_STYLE_CLASS_HORIZONTAL); gtk_container_add (GTK_CONTAINER (priv->title_widget), priv->arrow_widget); - formats = gdk_content_formats_new (NULL, 0); - dest = gtk_drop_target_new (formats, 0); - gdk_content_formats_unref (formats); + dest = gtk_drop_target_new (NULL, 0); g_signal_connect (dest, "accept", G_CALLBACK (gtk_expander_drag_accept), expander); g_signal_connect (dest, "drag-leave", G_CALLBACK (gtk_expander_drag_leave), expander); gtk_widget_add_controller (GTK_WIDGET (expander), GTK_EVENT_CONTROLLER (dest)); |