diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-02-11 17:24:01 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-02-13 14:53:25 +0000 |
commit | cdd7e4c5ec8f44d80c886a071984eaf85b5eed69 (patch) | |
tree | d2dc510fd7d00f5c8a4a046d717316458c9c1064 /gtk/gtknotebook.c | |
parent | 47f2a6cafd1b2353a3414147ec083e84e9d95885 (diff) | |
download | gtk+-cdd7e4c5ec8f44d80c886a071984eaf85b5eed69.tar.gz |
Add a notify function to GdkContentProvider
The callback-based content providers need a GDestroyNotify function to
free the data passed to them on construction, otherwise they are going
to leak.
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r-- | gtk/gtknotebook.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 57fd7172f1..6f7894defe 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -2882,7 +2882,8 @@ gtk_notebook_motion (GtkEventController *controller, content = gdk_content_provider_new_with_formats (priv->source_targets, gtk_notebook_drag_data_get, - widget); + widget, + NULL); drag = gdk_drag_begin (surface, device, content, GDK_ACTION_MOVE, priv->drag_begin_x, priv->drag_begin_y); g_object_unref (content); |