forked from AuroraMiddleware/gtk
wayland: Adapt to settings portal api change
ReadAll now accepts an array of patterns.
This commit is contained in:
parent
0d8dcccad2
commit
d21832719b
@ -673,6 +673,7 @@ init_settings (GdkScreen *screen)
|
||||
const char *schema;
|
||||
GVariant *val;
|
||||
GVariantIter *iter;
|
||||
const char *patterns[] = { "org.gnome.*", NULL };
|
||||
|
||||
screen_wayland->settings_portal = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION,
|
||||
G_DBUS_PROXY_FLAGS_NONE,
|
||||
@ -692,7 +693,7 @@ init_settings (GdkScreen *screen)
|
||||
|
||||
ret = g_dbus_proxy_call_sync (screen_wayland->settings_portal,
|
||||
"ReadAll",
|
||||
g_variant_new ("(s)", "org.gnome.*"),
|
||||
g_variant_new ("(^as)", patterns),
|
||||
G_DBUS_CALL_FLAGS_NONE,
|
||||
G_MAXINT,
|
||||
NULL,
|
||||
|
Loading…
Reference in New Issue
Block a user