diff options
author | Alexander Larsson <alexl@redhat.com> | 2015-09-08 15:31:01 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2015-09-08 15:31:01 +0200 |
commit | d0773282a53bf5108981ed008b742348ded35fd1 (patch) | |
tree | 930cd48547edf5ef09630ecefb20c462171fd22b /tests/test-doc-portal.c | |
parent | 31837cdaa300b99c68c087c150f3b20e11a2b927 (diff) | |
download | xdg-app-d0773282a53bf5108981ed008b742348ded35fd1.tar.gz |
test-doc-portal: Fix unique boolean arg
Diffstat (limited to 'tests/test-doc-portal.c')
-rw-r--r-- | tests/test-doc-portal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-doc-portal.c b/tests/test-doc-portal.c index 60e9648..02bf534 100644 --- a/tests/test-doc-portal.c +++ b/tests/test-doc-portal.c @@ -90,7 +90,7 @@ export_file (const char *path, gboolean unique) "/org/freedesktop/portal/documents", "org.freedesktop.portal.Documents", "Add", - g_variant_new ("(hb)", fd_id, unique), + g_variant_new ("(hb)", fd_id, !unique), G_VARIANT_TYPE ("(s)"), G_DBUS_CALL_FLAGS_NONE, 30000, @@ -119,7 +119,7 @@ export_new_file (const char *basename, const char *contents, gboolean unique) g_file_set_contents (path, contents, -1, &error); g_assert_no_error (error); - return export_file (path, FALSE); + return export_file (path, unique); } static gboolean |