2
Copyright 2011 Canonical Ltd.
5
Conor Curran <conor.curran@canonical.com>
7
This program is free software: you can redistribute it and/or modify it
8
under the terms of the GNU General Public License version 3, as published
9
by the Free Software Foundation.
11
This program is distributed in the hope that it will be useful, but
12
WITHOUT ANY WARRANTY; without even the implied warranties of
13
MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
14
PURPOSE. See the GNU General Public License for more details.
16
You should have received a copy of the GNU General Public License along
17
with this program. If not, see <http://www.gnu.org/licenses/>.
21
#ifndef _USER_MENU_MGR_H_
22
#define _USER_MENU_MGR_H_
25
#include <glib-object.h>
26
#include <libdbusmenu-gtk3/menuitem.h>
28
#include "session-dbus.h"
32
#define USER_TYPE_MENU_MGR (user_menu_mgr_get_type ())
33
#define USER_MENU_MGR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), USER_TYPE_MENU_MGR, UserMenuMgr))
34
#define USER_MENU_MGR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), USER_TYPE_MENU_MGR, UserMenuMgrClass))
35
#define USER_IS_MENU_MGR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), USER_TYPE_MENU_MGR))
36
#define USER_IS_MENU_MGR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), USER_TYPE_MENU_MGR))
37
#define USER_MENU_MGR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), USER_TYPE_MENU_MGR, UserMenuMgrClass))
39
typedef struct _UserMenuMgrClass UserMenuMgrClass;
40
typedef struct _UserMenuMgr UserMenuMgr;
42
struct _UserMenuMgrClass
44
GObjectClass parent_class;
47
GType user_menu_mgr_get_type (void) G_GNUC_CONST;
48
UserMenuMgr* user_menu_mgr_new (SessionDbus* session_dbus);
50
DbusmenuMenuitem* user_mgr_get_root_item (UserMenuMgr* self);
53
#endif /* _USER_MENU_MGR_H_ */