From ab5ac21104fb191a30c9c78fee5bd28e1f4cf06f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 20 Oct 2017 21:45:23 -0500 Subject: [PATCH] window: rename get_flatpack_id into get_sandboxed_app_id This function can be more generic now. https://bugzilla.gnome.org/show_bug.cgi?id=789277 --- src/core/window.c | 9 ++++++--- src/meta/window.h | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/core/window.c b/src/core/window.c index c2d9869d2..c6f8432a3 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -7293,13 +7293,16 @@ meta_window_get_wm_class_instance (MetaWindow *window) } /** - * meta_window_get_flatpak_id: + * meta_window_get_sandboxed_app_id: * @window: a #MetaWindow * - * Return value: (transfer none): the Flatpak application ID or %NULL + * Gets an unique id for a sandboxed app (currently flatpaks and snaps are + * supported). + * + * Return value: (transfer none): the sandboxed application ID or %NULL **/ const char * -meta_window_get_flatpak_id (MetaWindow *window) +meta_window_get_sandboxed_app_id (MetaWindow *window) { /* We're abusing this API here not to break the gnome shell assumptions * or adding a new function, to be renamed to generic names in new versions */ diff --git a/src/meta/window.h b/src/meta/window.h index b482bed37..09317e656 100644 --- a/src/meta/window.h +++ b/src/meta/window.h @@ -138,7 +138,7 @@ const char * meta_window_get_wm_class (MetaWindow *window); const char * meta_window_get_wm_class_instance (MetaWindow *window); gboolean meta_window_showing_on_its_workspace (MetaWindow *window); -const char * meta_window_get_flatpak_id (MetaWindow *window); +const char * meta_window_get_sandboxed_app_id (MetaWindow *window); const char * meta_window_get_gtk_theme_variant (MetaWindow *window); const char * meta_window_get_gtk_application_id (MetaWindow *window); const char * meta_window_get_gtk_unique_bus_name (MetaWindow *window);