1 /*
2 A small subclass of the menuitem for using clients.
3 
4 Copyright 2010 Canonical Ltd.
5 
6 Authors:
7     Ted Gould <ted@canonical.com>
8 
9 This program is free software: you can redistribute it and/or modify it
10 under the terms of either or both of the following licenses:
11 
12 1) the GNU Lesser General Public License version 3, as published by the
13 Free Software Foundation; and/or
14 2) the GNU Lesser General Public License version 2.1, as published by
15 the Free Software Foundation.
16 
17 This program is distributed in the hope that it will be useful, but
18 WITHOUT ANY WARRANTY; without even the implied warranties of
19 MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
20 PURPOSE.  See the applicable version of the GNU Lesser General Public
21 License for more details.
22 
23 You should have received a copy of both the GNU Lesser General Public
24 License version 3 and version 2.1 along with this program.  If not, see
25 <http://www.gnu.org/licenses/>
26 */
27 
28 #ifndef __DBUSMENU_CLIENT_MENUITEM_H__
29 #define __DBUSMENU_CLIENT_MENUITEM_H__
30 
31 #include <glib.h>
32 #include <glib-object.h>
33 #include "menuitem.h"
34 #include "client.h"
35 
36 G_BEGIN_DECLS
37 
38 #define DBUSMENU_TYPE_CLIENT_MENUITEM            (dbusmenu_client_menuitem_get_type ())
39 #define DBUSMENU_CLIENT_MENUITEM(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), DBUSMENU_TYPE_CLIENT_MENUITEM, DbusmenuClientMenuitem))
40 #define DBUSMENU_CLIENT_MENUITEM_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), DBUSMENU_TYPE_CLIENT_MENUITEM, DbusmenuClientMenuitemClass))
41 #define DBUSMENU_IS_CLIENT_MENUITEM(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DBUSMENU_TYPE_CLIENT_MENUITEM))
42 #define DBUSMENU_IS_CLIENT_MENUITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DBUSMENU_TYPE_CLIENT_MENUITEM))
43 #define DBUSMENU_CLIENT_MENUITEM_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), DBUSMENU_TYPE_CLIENT_MENUITEM, DbusmenuClientMenuitemClass))
44 
45 typedef struct _DbusmenuClientMenuitem      DbusmenuClientMenuitem;
46 typedef struct _DbusmenuClientMenuitemClass DbusmenuClientMenuitemClass;
47 
48 struct _DbusmenuClientMenuitemClass {
49 	DbusmenuMenuitemClass parent_class;
50 };
51 
52 struct _DbusmenuClientMenuitem {
53 	DbusmenuMenuitem parent;
54 };
55 
56 GType dbusmenu_client_menuitem_get_type (void);
57 DbusmenuClientMenuitem * dbusmenu_client_menuitem_new (gint id, DbusmenuClient * client);
58 
59 G_END_DECLS
60 
61 #endif
62