gnome-shell/src/shell-global-private.h
Jonas Ådahl ff705fa902 shell: Make singletons owned by ShellGlobal
This means also means they will be cleaned up when disposing
ShellGlobal, which will then mean signals tied to the GObject lifetime
will be disconnected.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6536
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2722>
2023-04-20 14:49:38 +02:00

30 lines
942 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>
#include "shell-app-cache-private.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);
ShellAppCache * shell_global_get_app_cache (ShellGlobal *global);
gboolean _shell_global_check_xdnd_event (ShellGlobal *global,
XEvent *xev);
void _shell_global_locate_pointer (ShellGlobal *global);
void _shell_global_notify_shutdown (ShellGlobal *global);
#endif /* __SHELL_GLOBAL_PRIVATE_H__ */