diff options
Diffstat (limited to 'shell/shell-app-system.h')
| -rw-r--r-- | shell/shell-app-system.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/shell/shell-app-system.h b/shell/shell-app-system.h new file mode 100644 index 0000000..19678b4 --- /dev/null +++ b/shell/shell-app-system.h @@ -0,0 +1,40 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ +#ifndef __SHELL_APP_SYSTEM_H__ +#define __SHELL_APP_SYSTEM_H__ + +#include <gio/gio.h> +#define GMENU_I_KNOW_THIS_IS_UNSTABLE +#include <gmenu-tree.h> + +#define SHELL_TYPE_APP_SYSTEM (shell_app_system_get_type ()) +#define SHELL_APP_SYSTEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SHELL_TYPE_APP_SYSTEM, ShellAppSystem)) +#define SHELL_APP_SYSTEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SHELL_TYPE_APP_SYSTEM, ShellAppSystemClass)) +#define SHELL_IS_APP_SYSTEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SHELL_TYPE_APP_SYSTEM)) +#define SHELL_IS_APP_SYSTEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SHELL_TYPE_APP_SYSTEM)) +#define SHELL_APP_SYSTEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SHELL_TYPE_APP_SYSTEM, ShellAppSystemClass)) + +typedef struct _ShellAppSystem ShellAppSystem; +typedef struct _ShellAppSystemClass ShellAppSystemClass; +typedef struct _ShellAppSystemPrivate ShellAppSystemPrivate; + +struct _ShellAppSystem +{ + GObject parent; + + ShellAppSystemPrivate *priv; +}; + +struct _ShellAppSystemClass +{ + GObjectClass parent_class; + + void (*installed_changed)(ShellAppSystem *appsys, gpointer user_data); + void (*favorites_changed)(ShellAppSystem *appsys, gpointer user_data); +}; + +GType shell_app_system_get_type (void) G_GNUC_CONST; +ShellAppSystem *shell_app_system_get_default (void); + +GHashTable *shell_app_system_get_entries (ShellAppSystem *self); + +#endif /* __SHELL_APP_SYSTEM_H__ */ |
