Merge branch 'gtk4-portal-close' into 'main'

[gtk4] Fix file chooser and open uri portal close.

See merge request GNOME/gtk!6613
This commit is contained in:
Matthias Clasen 2023-11-25 17:19:31 +00:00
commit 34bca0ff56
2 changed files with 2 additions and 5 deletions

View File

@ -217,11 +217,9 @@ send_close (FilechooserPortalData *data)
GError *error = NULL;
message = g_dbus_message_new_method_call (PORTAL_BUS_NAME,
PORTAL_OBJECT_PATH,
data->portal_handle,
PORTAL_REQUEST_INTERFACE,
"Close");
g_dbus_message_set_body (message,
g_variant_new ("(o)", data->portal_handle));
if (!g_dbus_connection_send_message (data->connection,
message,

View File

@ -237,10 +237,9 @@ send_close (OpenUriData *data)
GError *error = NULL;
message = g_dbus_message_new_method_call (PORTAL_BUS_NAME,
PORTAL_OBJECT_PATH,
data->handle,
PORTAL_REQUEST_INTERFACE,
"Close");
g_dbus_message_set_body (message, g_variant_new ("(o)", data->handle));
if (!g_dbus_connection_send_message (data->connection,
message,