From 39f8e1e137544d84c6fb331eec2353109ae3a5c4 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 12 Nov 2018 13:51:56 -0500 Subject: [PATCH] wayland: Adapt to settings portal api change ReadAll now accepts an array of patterns. --- gdk/wayland/gdkdisplay-wayland.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c index fb1ed3e25b..0c870d8722 100644 --- a/gdk/wayland/gdkdisplay-wayland.c +++ b/gdk/wayland/gdkdisplay-wayland.c @@ -1792,6 +1792,7 @@ init_settings (GdkDisplay *display) const char *schema; GVariant *val; GVariantIter *iter; + const char *patterns[] = { "org.gnome.*", NULL }; display_wayland->settings_portal = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION, G_DBUS_PROXY_FLAGS_NONE, @@ -1811,7 +1812,7 @@ init_settings (GdkDisplay *display) ret = g_dbus_proxy_call_sync (display_wayland->settings_portal, "ReadAll", - g_variant_new ("(s)", "org.gnome.*"), + g_variant_new ("(^as)", patterns), G_DBUS_CALL_FLAGS_NONE, G_MAXINT, NULL,