Store GjsContext pointer in ShellGlobal
Future functionality in ShellGlobal needs access to the GjsContext. https://bugzilla.gnome.org/show_bug.cgi?id=599561
This commit is contained in:
@ -18,6 +18,7 @@
|
||||
#include <glib/gi18n-lib.h>
|
||||
#include <math.h>
|
||||
#include <X11/extensions/Xfixes.h>
|
||||
#include <gjs/gjs.h>
|
||||
|
||||
#define SHELL_DBUS_SERVICE "org.gnome.Shell"
|
||||
|
||||
@ -37,7 +38,8 @@ struct _ShellGlobal {
|
||||
|
||||
ShellStageInputMode input_mode;
|
||||
XserverRegion input_region;
|
||||
|
||||
|
||||
GjsContext *js_context;
|
||||
MutterPlugin *plugin;
|
||||
ShellWM *wm;
|
||||
const char *datadir;
|
||||
@ -445,6 +447,13 @@ _shell_global_set_plugin (ShellGlobal *global,
|
||||
global->wm = shell_wm_new (plugin);
|
||||
}
|
||||
|
||||
void
|
||||
_shell_global_set_gjs_context (ShellGlobal *global,
|
||||
GjsContext *context)
|
||||
{
|
||||
global->js_context = context;
|
||||
}
|
||||
|
||||
/**
|
||||
* shell_global_begin_modal:
|
||||
* @global: a #ShellGlobal
|
||||
|
Reference in New Issue
Block a user