83005e27da
This will be required in the upcoming version of GJS. The reference count on ShellGlobal is 2 at this point, because JS holds a reference due to the "window.global = Shell.Global.get()" line in ui/environment.js. Therefore, destroy the GjsContext first, then unref the ShellGlobal object. Cleaning up ShellGlobal was previously only enabled behind a debug environment variable, but it should be required now. https://bugzilla.gnome.org/show_bug.cgi?id=775374
22 lines
719 B
C
22 lines
719 B
C
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
#ifndef __SHELL_GLOBAL_PRIVATE_H__
|
|
#define __SHELL_GLOBAL_PRIVATE_H__
|
|
|
|
#include "shell-global.h"
|
|
|
|
#include <gjs/gjs.h>
|
|
|
|
void _shell_global_init (const char *first_property_name,
|
|
...);
|
|
void _shell_global_set_plugin (ShellGlobal *global,
|
|
MetaPlugin *plugin);
|
|
|
|
void _shell_global_destroy_gjs_context (ShellGlobal *global);
|
|
|
|
GjsContext *_shell_global_get_gjs_context (ShellGlobal *global);
|
|
|
|
gboolean _shell_global_check_xdnd_event (ShellGlobal *global,
|
|
XEvent *xev);
|
|
|
|
#endif /* __SHELL_GLOBAL_PRIVATE_H__ */
|