2008-11-14 17:21:56 +00:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
|
|
|
|
#ifndef __SHELL_TRAY_MANAGER_H__
|
|
|
|
#define __SHELL_TRAY_MANAGER_H__
|
|
|
|
|
|
|
|
#include <clutter/clutter.h>
|
2011-01-31 17:48:18 +00:00
|
|
|
#include "st.h"
|
2008-11-14 17:21:56 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define SHELL_TYPE_TRAY_MANAGER (shell_tray_manager_get_type ())
|
|
|
|
#define SHELL_TRAY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SHELL_TYPE_TRAY_MANAGER, ShellTrayManager))
|
|
|
|
#define SHELL_TRAY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SHELL_TYPE_TRAY_MANAGER, ShellTrayManagerClass))
|
|
|
|
#define SHELL_IS_TRAY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SHELL_TYPE_TRAY_MANAGER))
|
|
|
|
#define SHELL_IS_TRAY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SHELL_TYPE_TRAY_MANAGER))
|
|
|
|
#define SHELL_TRAY_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SHELL_TYPE_TRAY_MANAGER, ShellTrayManagerClass))
|
|
|
|
|
|
|
|
typedef struct _ShellTrayManager ShellTrayManager;
|
|
|
|
typedef struct _ShellTrayManagerPrivate ShellTrayManagerPrivate;
|
|
|
|
typedef struct _ShellTrayManagerClass ShellTrayManagerClass;
|
|
|
|
|
|
|
|
struct _ShellTrayManager
|
|
|
|
{
|
|
|
|
GObject parent_instance;
|
|
|
|
|
|
|
|
ShellTrayManagerPrivate *priv;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _ShellTrayManagerClass
|
|
|
|
{
|
|
|
|
GObjectClass parent_class;
|
|
|
|
|
|
|
|
void (* tray_icon_added) (ShellTrayManager *manager,
|
2009-10-15 13:44:09 +00:00
|
|
|
ClutterActor *icon,
|
|
|
|
const char *lowercase_wm_class);
|
2008-11-14 17:21:56 +00:00
|
|
|
void (* tray_icon_removed) (ShellTrayManager *manager,
|
|
|
|
ClutterActor *icon);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
GType shell_tray_manager_get_type (void);
|
|
|
|
|
|
|
|
ShellTrayManager *shell_tray_manager_new (void);
|
2013-02-12 22:31:38 +00:00
|
|
|
void shell_tray_manager_manage_screen (ShellTrayManager *manager,
|
|
|
|
MetaScreen *screen,
|
|
|
|
StWidget *theme_widget);
|
2008-11-14 17:21:56 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __SHELL_TRAY_MANAGER_H__ */
|