Bump the version of the flatpak portal interface to 2

Also mention this in the create monitor docs.
This commit is contained in:
Alexander Larsson
2019-09-11 09:49:14 +02:00
committed by Alexander Larsson
parent fe0b8aa860
commit e719463adf
2 changed files with 4 additions and 2 deletions

View File

@@ -36,7 +36,7 @@
bus name org.freedesktop.portal.Flatpak and the object path
/org/freedesktop/portal/Flatpak.
This documentation describes version 1 of this interface.
This documentation describes version 2 of this interface.
-->
<interface name='org.freedesktop.portal.Flatpak'>
<property name="version" type="u" access="read"/>
@@ -171,6 +171,8 @@
with the 'handle_token' key in the options vardict.
Currently, no other options are accepted.
This was added in version 2 of this interface (available from flatpak 1.5.0 and later).
-->
<method name="CreateUpdateMonitor">
<arg type="a{sv}" name="options" direction="in"/>

View File

@@ -1356,7 +1356,7 @@ on_bus_acquired (GDBusConnection *connection,
g_dbus_interface_skeleton_set_flags (G_DBUS_INTERFACE_SKELETON (portal),
G_DBUS_INTERFACE_SKELETON_FLAGS_HANDLE_METHOD_INVOCATIONS_IN_THREAD);
portal_flatpak_set_version (PORTAL_FLATPAK (portal), 1);
portal_flatpak_set_version (PORTAL_FLATPAK (portal), 2);
g_signal_connect (portal, "handle-spawn", G_CALLBACK (handle_spawn), NULL);
g_signal_connect (portal, "handle-spawn-signal", G_CALLBACK (handle_spawn_signal), NULL);
g_signal_connect (portal, "handle-create-update-monitor", G_CALLBACK (handle_create_update_monitor), NULL);