gappinfo: Pass activation token from launch context to open_uri/file portal

The `activation_token` option was added to the portal in v4, so let's
actually pass a activation token if we have one.

Fixes: https://gitlab.gnome.org/GNOME/glib/-/issues/2868
This commit is contained in:
Julian Sparber
2024-02-16 11:19:56 +01:00
parent 6210708f05
commit 23b858a3de
3 changed files with 58 additions and 10 deletions

View File

@@ -27,10 +27,12 @@ G_BEGIN_DECLS
gboolean g_openuri_portal_open_file (GFile *file,
const char *parent_window,
const char *startup_id,
GError **error);
void g_openuri_portal_open_file_async (GFile *file,
const char *parent_window,
const char *startup_id,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);