summaryrefslogtreecommitdiff
path: root/tests/testdnd2.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-02-11 17:24:01 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2020-02-13 14:53:25 +0000
commitcdd7e4c5ec8f44d80c886a071984eaf85b5eed69 (patch)
treed2dc510fd7d00f5c8a4a046d717316458c9c1064 /tests/testdnd2.c
parent47f2a6cafd1b2353a3414147ec083e84e9d95885 (diff)
downloadgtk+-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 'tests/testdnd2.c')
-rw-r--r--tests/testdnd2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testdnd2.c b/tests/testdnd2.c
index 5341459989..84ba7abc6e 100644
--- a/tests/testdnd2.c
+++ b/tests/testdnd2.c
@@ -399,7 +399,7 @@ make_image (const gchar *icon_name, int hotspot)
gdk_content_formats_builder_add_gtype (builder, G_TYPE_STRING);
formats = gdk_content_formats_builder_free_to_formats (builder);
- content = gdk_content_provider_new_with_formats (formats, get_data, image);
+ content = gdk_content_provider_new_with_formats (formats, get_data, image, NULL);
source = gtk_drag_source_new ();
gtk_drag_source_set_content (source, content);
gtk_drag_source_set_actions (source, GDK_ACTION_COPY|GDK_ACTION_MOVE|GDK_ACTION_ASK);