[gnome-shell] window-tracker: use generic meta_window_get_sandboxed_app_id



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

    window-tracker: use generic meta_window_get_sandboxed_app_id
    
    This is valid for both Flatpak's and snaps now, we can use a more generic
    API then.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=789277

 src/shell-window-tracker.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/shell-window-tracker.c b/src/shell-window-tracker.c
index f87e6a3..85c7870 100644
--- a/src/shell-window-tracker.c
+++ b/src/shell-window-tracker.c
@@ -256,21 +256,21 @@ get_app_from_gapplication_id (MetaWindow  *window)
 }
 
 /*
- * get_app_from_flatpak_id:
+ * get_app_from_sandboxed_app_id:
  * @window: a #MetaWindow
  *
  * Looks only at the given window, and attempts to determine
- * an application based on its Flatpak ID.  If one can't be determined,
+ * an application based on its Flatpak or Snap ID.  If one can't be determined,
  * return %NULL.
  *
  * Return value: (transfer full): A newly-referenced #ShellApp, or %NULL
  */
 static ShellApp *
-get_app_from_flatpak_id (MetaWindow  *window)
+get_app_from_sandboxed_app_id (MetaWindow  *window)
 {
   const char *id;
 
-  id = meta_window_get_flatpak_id (window);
+  id = meta_window_get_sandboxed_app_id (window);
   if (!id)
     return NULL;
 
@@ -395,10 +395,10 @@ get_app_for_window (ShellWindowTracker    *tracker,
   if (meta_window_is_remote (window))
     return _shell_app_new_for_window (window);
 
-  /* Check if the window was opened from within a Flatpak sandbox; if this
+  /* Check if the window was opened from within a sandbox; if this
    * is the case, a corresponding .desktop file is guaranteed to match;
    */
-  result = get_app_from_flatpak_id (window);
+  result = get_app_from_sandboxed_app_id (window);
   if (result != NULL)
     return result;
 


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