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>
This commit is contained in:
Ivan Molodetskikh 2022-07-31 10:35:26 -07:00 committed by Georges Basile Stavracas Neto
parent e3d6876f01
commit 1fd08e80ed
2 changed files with 18 additions and 6 deletions

View File

@ -843,6 +843,17 @@ shell_global_get_display (ShellGlobal *global)
return global->meta_display; 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: * shell_global_get_window_actors:
* *

View File

@ -13,13 +13,14 @@ G_BEGIN_DECLS
#define SHELL_TYPE_GLOBAL (shell_global_get_type ()) #define SHELL_TYPE_GLOBAL (shell_global_get_type ())
G_DECLARE_FINAL_TYPE (ShellGlobal, shell_global, SHELL, GLOBAL, GObject) G_DECLARE_FINAL_TYPE (ShellGlobal, shell_global, SHELL, GLOBAL, GObject)
ShellGlobal *shell_global_get (void); ShellGlobal *shell_global_get (void);
ClutterStage *shell_global_get_stage (ShellGlobal *global); ClutterStage *shell_global_get_stage (ShellGlobal *global);
MetaDisplay *shell_global_get_display (ShellGlobal *global); MetaDisplay *shell_global_get_display (ShellGlobal *global);
GList *shell_global_get_window_actors (ShellGlobal *global); GList *shell_global_get_window_actors (ShellGlobal *global);
GSettings *shell_global_get_settings (ShellGlobal *global); GSettings *shell_global_get_settings (ShellGlobal *global);
guint32 shell_global_get_current_time (ShellGlobal *global); guint32 shell_global_get_current_time (ShellGlobal *global);
MetaWorkspaceManager *shell_global_get_workspace_manager (ShellGlobal *global);
/* Input/event handling */ /* Input/event handling */