summaryrefslogtreecommitdiff
path: root/testsuite/gdk/arrayimpl.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2020-12-23 20:04:29 +0100
committerBenjamin Otte <otte@redhat.com>2020-12-24 06:38:45 +0100
commit96e1b85c2cfec83961b2a667833155cef3a4b073 (patch)
treeb9595648e638a6ac761b4f99fc5717c97e865be5 /testsuite/gdk/arrayimpl.c
parent71e616d17e4d265bba66cbe7dd818195c6934117 (diff)
downloadgtk+-96e1b85c2cfec83961b2a667833155cef3a4b073.tar.gz
gdkarray: Add a "stolen" boolean to splice()
If set to TRUE, does not call the free func for the removed items. This can be used to move items between arrays without having to do the refcounting dance.
Diffstat (limited to 'testsuite/gdk/arrayimpl.c')
-rw-r--r--testsuite/gdk/arrayimpl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/gdk/arrayimpl.c b/testsuite/gdk/arrayimpl.c
index 286f64d678..77494fbf70 100644
--- a/testsuite/gdk/arrayimpl.c
+++ b/testsuite/gdk/arrayimpl.c
@@ -77,7 +77,7 @@ gdk_array(test_splice) (void)
for (j = 0; j < add; j++)
sum += ++additions[j];
- gdk_array(splice) (&v, pos, remove, additions, add);
+ gdk_array(splice) (&v, pos, remove, FALSE, additions, add);
{
gsize total = 0;
for (j = 0; j < gdk_array(get_size) (&v); j++)