~larsu/indicator-session/glib-deadlock-workaround

« back to all changes in this revision

Viewing changes to src/user-widget.h

  • Committer: Charles Kerr
  • Date: 2013-03-22 21:34:34 UTC
  • mto: (384.2.29 ng)
  • mto: This revision was merged to the branch mainline in revision 399.
  • Revision ID: charles.kerr@canonical.com-20130322213434-a85qbob8bi4fvfx2
port indicator-session to GMenu/cmake. Code coverage increased from 0% to 95.4%.

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
 
#ifndef __USER_WIDGET_H__
20
 
#define __USER_WIDGET_H__
21
 
 
22
 
#include <gtk/gtk.h>
23
 
#include <libdbusmenu-gtk/menuitem.h>
24
 
 
25
 
G_BEGIN_DECLS
26
 
 
27
 
#define USER_WIDGET_TYPE            (user_widget_get_type ())
28
 
#define USER_WIDGET(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), USER_WIDGET_TYPE, UserWidget))
29
 
#define USER_WIDGET_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), USER_WIDGET_TYPE, UserWidgetClass))
30
 
#define IS_USER_WIDGET(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), USER_WIDGET_TYPE))
31
 
#define IS_USER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), USER_WIDGET_TYPE))
32
 
#define USER_WIDGET_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), USER_WIDGET_TYPE, UserWidgetClass))
33
 
 
34
 
typedef struct _UserWidget        UserWidget;
35
 
typedef struct _UserWidgetClass   UserWidgetClass;
36
 
typedef struct _UserWidgetPrivate UserWidgetPrivate;
37
 
 
38
 
struct _UserWidgetClass
39
 
{
40
 
  GtkMenuItemClass parent_class;
41
 
};
42
 
 
43
 
struct _UserWidget
44
 
{
45
 
  /*< private >*/
46
 
  GtkMenuItem parent;
47
 
  UserWidgetPrivate * priv;
48
 
};
49
 
 
50
 
GType user_widget_get_type (void) G_GNUC_CONST;
51
 
GtkWidget* user_widget_new(DbusmenuMenuitem *twin_item);
52
 
 
53
 
G_END_DECLS
54
 
 
55
 
#endif