e6d4581959
Since support for legacy status icons is implemented by extensions nowadays, they need to undo the call to manage_screen() when they are disabled. Right now that means bypassing garbage collection with an explicit call to run_dispose() on the Shell.TrayManager. That works, but is rather ugly. An explicit unmanage_screen() method is a nicer option, and will be useful to us as well to deal with X11 going away (once Xwayland crashes don't bring down the entire session). https://gitlab.gnome.org/GNOME/gnome-shell/issues/2308
23 lines
730 B
C
23 lines
730 B
C
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
#ifndef __SHELL_TRAY_MANAGER_H__
|
|
#define __SHELL_TRAY_MANAGER_H__
|
|
|
|
#include <clutter/clutter.h>
|
|
#include "st.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define SHELL_TYPE_TRAY_MANAGER (shell_tray_manager_get_type ())
|
|
G_DECLARE_FINAL_TYPE (ShellTrayManager, shell_tray_manager,
|
|
SHELL, TRAY_MANAGER, GObject)
|
|
|
|
ShellTrayManager *shell_tray_manager_new (void);
|
|
void shell_tray_manager_manage_screen (ShellTrayManager *manager,
|
|
StWidget *theme_widget);
|
|
void shell_tray_manager_unmanage_screen (ShellTrayManager *manager);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __SHELL_TRAY_MANAGER_H__ */
|