[mutter] window: rename get_flatpack_id into get_sandboxed_app_id



commit ab5ac21104fb191a30c9c78fee5bd28e1f4cf06f
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Fri Oct 20 21:45:23 2017 -0500

    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 c2d9869..c6f8432 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 b482bed..09317e6 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]