service-channel: Add global shotcuts portal backend client type

The global shortcuts portal backend component lives in
gnome-control-center, and is responsible for preseting the GUI for
managing client provided global shortcuts.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4173>
This commit is contained in:
Jonas Ådahl 2024-12-06 09:17:38 +01:00 committed by Marge Bot
parent 0f195078cb
commit f4201bc3d3
4 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,7 @@
ServiceClientTypes: ServiceClientTypes:
PORTAL_BACKEND: 1 PORTAL_BACKEND: 1
FILECHOOSER_PORTAL_BACKEND: 2 FILECHOOSER_PORTAL_BACKEND: 2
GLOBAL_SHORTCUTS_PORTAL_BACKEND: 3
--> -->
<method name="OpenWaylandServiceConnection"> <method name="OpenWaylandServiceConnection">
<arg name="service_client_type" type="u" direction="in" /> <arg name="service_client_type" type="u" direction="in" />

View File

@ -99,6 +99,7 @@ verify_service_client_type (uint32_t service_client_type)
return FALSE; return FALSE;
case META_SERVICE_CLIENT_TYPE_PORTAL_BACKEND: case META_SERVICE_CLIENT_TYPE_PORTAL_BACKEND:
case META_SERVICE_CLIENT_TYPE_FILECHOOSER_PORTAL_BACKEND: case META_SERVICE_CLIENT_TYPE_FILECHOOSER_PORTAL_BACKEND:
case META_SERVICE_CLIENT_TYPE_GLOBAL_SHORTCUTS_PORTAL_BACKEND:
return TRUE; return TRUE;
} }

View File

@ -31,6 +31,7 @@ typedef enum _MetaServiceClientType
META_SERVICE_CLIENT_TYPE_NONE, META_SERVICE_CLIENT_TYPE_NONE,
META_SERVICE_CLIENT_TYPE_PORTAL_BACKEND, META_SERVICE_CLIENT_TYPE_PORTAL_BACKEND,
META_SERVICE_CLIENT_TYPE_FILECHOOSER_PORTAL_BACKEND, META_SERVICE_CLIENT_TYPE_FILECHOOSER_PORTAL_BACKEND,
META_SERVICE_CLIENT_TYPE_GLOBAL_SHORTCUTS_PORTAL_BACKEND,
} MetaServiceClientType; } MetaServiceClientType;
#define META_TYPE_SERVICE_CHANNEL (meta_service_channel_get_type ()) #define META_TYPE_SERVICE_CHANNEL (meta_service_channel_get_type ())

View File

@ -99,6 +99,7 @@ x11_interop_filter (const struct wl_client *client,
MetaServiceClientType allowed_client_types[] = { MetaServiceClientType allowed_client_types[] = {
META_SERVICE_CLIENT_TYPE_PORTAL_BACKEND, META_SERVICE_CLIENT_TYPE_PORTAL_BACKEND,
META_SERVICE_CLIENT_TYPE_FILECHOOSER_PORTAL_BACKEND, META_SERVICE_CLIENT_TYPE_FILECHOOSER_PORTAL_BACKEND,
META_SERVICE_CLIENT_TYPE_GLOBAL_SHORTCUTS_PORTAL_BACKEND,
}; };
size_t i; size_t i;