[gnome-shell/wip/hadess/PrefersNonDefaultGPU: 6/10] shell/global: Make switcheroo-control available from JS



commit b3b91d2187783cf050512ef36c5b3f8cda9f31e8
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Apr 28 17:25:18 2020 +0200

    shell/global: Make switcheroo-control available from JS
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1226

 src/shell-app.c    | 2 +-
 src/shell-global.c | 4 ++--
 src/shell-global.h | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/shell-app.c b/src/shell-app.c
index f72cba15d2..e7353274c9 100644
--- a/src/shell-app.c
+++ b/src/shell-app.c
@@ -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");
diff --git a/src/shell-global.c b/src/shell-global.c
index 0488c3c441..2390c711e4 100644
--- a/src/shell-global.c
+++ b/src/shell-global.c
@@ -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;
 }
diff --git a/src/shell-global.h b/src/shell-global.h
index 860e60ab6c..e1fa60aefb 100644
--- a/src/shell-global.h
+++ b/src/shell-global.h
@@ -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,


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