2
* Copyright (c) 2010 Intel, Inc.
4
* The Control Center is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by the
6
* Free Software Foundation; either version 2 of the License, or (at your
7
* option) any later version.
9
* The Control Center is distributed in the hope that it will be useful, but
10
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14
* You should have received a copy of the GNU General Public License along
15
* with the Control Center; if not, write to the Free Software Foundation,
16
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
* Author: Thomas Wood <thos@gnome.org>
22
#ifndef _CC_SHELL_MODEL_H
23
#define _CC_SHELL_MODEL_H
26
#define GMENU_I_KNOW_THIS_IS_UNSTABLE
27
#include <gmenu-tree.h>
31
#define CC_TYPE_SHELL_MODEL cc_shell_model_get_type()
33
#define CC_SHELL_MODEL(obj) \
34
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
35
CC_TYPE_SHELL_MODEL, CcShellModel))
37
#define CC_SHELL_MODEL_CLASS(klass) \
38
(G_TYPE_CHECK_CLASS_CAST ((klass), \
39
CC_TYPE_SHELL_MODEL, CcShellModelClass))
41
#define CC_IS_SHELL_MODEL(obj) \
42
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
45
#define CC_IS_SHELL_MODEL_CLASS(klass) \
46
(G_TYPE_CHECK_CLASS_TYPE ((klass), \
49
#define CC_SHELL_MODEL_GET_CLASS(obj) \
50
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
51
CC_TYPE_SHELL_MODEL, CcShellModelClass))
53
typedef struct _CcShellModel CcShellModel;
54
typedef struct _CcShellModelClass CcShellModelClass;
75
struct _CcShellModelClass
77
GtkListStoreClass parent_class;
80
GType cc_shell_model_get_type (void) G_GNUC_CONST;
82
CcShellModel *cc_shell_model_new (void);
84
void cc_shell_model_add_item (CcShellModel *model,
85
const gchar *category_name,
86
GMenuTreeEntry *item);
90
#endif /* _CC_SHELL_MODEL_H */