mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
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:
commit
34bca0ff56
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user