shell/global: Make switcheroo-control available from JS
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1226
This commit is contained in:
parent
49605c7b00
commit
9d7832ea44
@ -1289,7 +1289,7 @@ apply_discrete_gpu_env (GAppLaunchContext *context,
|
||||
GVariant* variant;
|
||||
guint num_children, i;
|
||||
|
||||
proxy = _shell_global_get_switcheroo_control (global);
|
||||
proxy = shell_global_get_switcheroo_control (global);
|
||||
if (!proxy)
|
||||
{
|
||||
g_warning ("Could not apply discrete GPU environment, switcheroo-control not available");
|
||||
|
@ -1402,7 +1402,7 @@ shell_global_sync_pointer (ShellGlobal *global)
|
||||
}
|
||||
|
||||
/**
|
||||
* _shell_global_get_switcheroo_control: (skip)
|
||||
* shell_global_get_switcheroo_control:
|
||||
* @global: A #ShellGlobal
|
||||
*
|
||||
* Get the global #GDBusProxy instance for the switcheroo-control
|
||||
@ -1412,7 +1412,7 @@ shell_global_sync_pointer (ShellGlobal *global)
|
||||
* or %NULL on error.
|
||||
*/
|
||||
GDBusProxy *
|
||||
_shell_global_get_switcheroo_control (ShellGlobal *global)
|
||||
shell_global_get_switcheroo_control (ShellGlobal *global)
|
||||
{
|
||||
return global->switcheroo_control;
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ void shell_global_run_at_leisure (ShellGlobal *global,
|
||||
void shell_global_sync_pointer (ShellGlobal *global);
|
||||
|
||||
GDBusProxy *
|
||||
_shell_global_get_switcheroo_control (ShellGlobal *global);
|
||||
shell_global_get_switcheroo_control (ShellGlobal *global);
|
||||
|
||||
GAppLaunchContext *
|
||||
shell_global_create_app_launch_context (ShellGlobal *global,
|
||||
|
Loading…
Reference in New Issue
Block a user