[gnome-shell] Add shell_global_get_workspace_manager ()



commit 1fd08e80ed9e1976ddc719aaedb83f4aa9f989de
Author: Ivan Molodetskikh <yalterz gmail com>
Date:   Sun Jul 31 10:35:26 2022 -0700

    Add shell_global_get_workspace_manager ()
    
    It will be used in the subsequent commit.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2394>

 src/shell-global.c | 11 +++++++++++
 src/shell-global.h | 15 ++++++++-------
 2 files changed, 19 insertions(+), 7 deletions(-)
---
diff --git a/src/shell-global.c b/src/shell-global.c
index 60f078f3b9..0ccdb10299 100644
--- a/src/shell-global.c
+++ b/src/shell-global.c
@@ -843,6 +843,17 @@ shell_global_get_display (ShellGlobal  *global)
   return global->meta_display;
 }
 
+/**
+ * shell_global_get_workspace_manager:
+ *
+ * Return value: (transfer none): The default #MetaWorkspaceManager
+ */
+MetaWorkspaceManager *
+shell_global_get_workspace_manager (ShellGlobal  *global)
+{
+  return global->workspace_manager;
+}
+
 /**
  * shell_global_get_window_actors:
  *
diff --git a/src/shell-global.h b/src/shell-global.h
index d5e77ea3fe..8d8238ca22 100644
--- a/src/shell-global.h
+++ b/src/shell-global.h
@@ -13,13 +13,14 @@ G_BEGIN_DECLS
 #define SHELL_TYPE_GLOBAL (shell_global_get_type ())
 G_DECLARE_FINAL_TYPE (ShellGlobal, shell_global, SHELL, GLOBAL, GObject)
 
-ShellGlobal   *shell_global_get                       (void);
-
-ClutterStage  *shell_global_get_stage                 (ShellGlobal *global);
-MetaDisplay   *shell_global_get_display               (ShellGlobal *global);
-GList         *shell_global_get_window_actors         (ShellGlobal *global);
-GSettings     *shell_global_get_settings              (ShellGlobal *global);
-guint32        shell_global_get_current_time          (ShellGlobal *global);
+ShellGlobal          *shell_global_get                       (void);
+
+ClutterStage         *shell_global_get_stage                 (ShellGlobal *global);
+MetaDisplay          *shell_global_get_display               (ShellGlobal *global);
+GList                *shell_global_get_window_actors         (ShellGlobal *global);
+GSettings            *shell_global_get_settings              (ShellGlobal *global);
+guint32               shell_global_get_current_time          (ShellGlobal *global);
+MetaWorkspaceManager *shell_global_get_workspace_manager     (ShellGlobal *global);
 
 
 /* Input/event handling */


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