~ubuntu-branches/ubuntu/oneiric/indicator-session/oneiric-proposed

« back to all changes in this revision

Viewing changes to src/user-menu-mgr.h

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2011-07-22 13:41:08 UTC
  • mfrom: (1.1.31 upstream)
  • Revision ID: james.westby@ubuntu.com-20110722134108-8qgaow6jiocdlpga
Tags: 0.3.0-0ubuntu1
* New upstream release.
  - fixed bug where the user menu wouldn't open in unity (LP: #812728)
  - Include apt, settings and device menus
* debian/rules
  - Updated gtk configure args

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright 2011 Canonical Ltd.
 
3
 
 
4
Authors:
 
5
    Conor Curran <conor.curran@canonical.com>
 
6
 
 
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.
 
10
 
 
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.
 
15
 
 
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/>.
 
18
*/
 
19
 
 
20
 
 
21
#ifndef _USER_MENU_MGR_H_
 
22
#define _USER_MENU_MGR_H_
 
23
 
 
24
 
 
25
#include <glib-object.h>
 
26
#include <libdbusmenu-gtk3/menuitem.h>
 
27
 
 
28
#include "session-dbus.h"
 
29
 
 
30
G_BEGIN_DECLS
 
31
 
 
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))
 
38
 
 
39
typedef struct _UserMenuMgrClass UserMenuMgrClass;
 
40
typedef struct _UserMenuMgr UserMenuMgr;
 
41
 
 
42
struct _UserMenuMgrClass
 
43
{
 
44
        GObjectClass parent_class;
 
45
};
 
46
 
 
47
GType user_menu_mgr_get_type (void) G_GNUC_CONST;
 
48
UserMenuMgr* user_menu_mgr_new (SessionDbus* session_dbus);
 
49
 
 
50
DbusmenuMenuitem* user_mgr_get_root_item (UserMenuMgr* self);
 
51
G_END_DECLS
 
52
 
 
53
#endif /* _USER_MENU_MGR_H_ */