[gtk/gtk-4-6: 3/11] portals: Fix FileTransfer portal calls
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-4-6: 3/11] portals: Fix FileTransfer portal calls
- Date: Thu, 29 Sep 2022 10:25:54 +0000 (UTC)
commit af831e488bf8388cba3df9fe7e895f7d585d43c5
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Sep 6 23:44:58 2022 -0400
portals: Fix FileTransfer portal calls
We were not passing the right arguments to
the AddFiles call, causing the file transfer
to fail.
gdk/filetransferportal.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gdk/filetransferportal.c b/gdk/filetransferportal.c
index fac2ab213c..d9934fbb43 100644
--- a/gdk/filetransferportal.c
+++ b/gdk/filetransferportal.c
@@ -97,7 +97,7 @@ add_files (GDBusProxy *proxy,
AddFileData *afd)
{
GUnixFDList *fd_list;
- GVariantBuilder fds;
+ GVariantBuilder fds, options;
int i;
char *key;
@@ -146,9 +146,10 @@ add_files (GDBusProxy *proxy,
key = (char *)g_object_get_data (G_OBJECT (afd->task), "key");
+ g_variant_builder_init (&options, G_VARIANT_TYPE_VARDICT);
g_dbus_proxy_call_with_unix_fd_list (proxy,
"AddFiles",
- g_variant_new ("(sah)", key, &fds),
+ g_variant_new ("(saha{sv})", key, &fds, &options),
0, -1,
fd_list,
NULL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]