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/>.
19
#ifndef __USER_WIDGET_H__
20
#define __USER_WIDGET_H__
23
#include <libdbusmenu-gtk/menuitem.h>
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))
34
typedef struct _UserWidget UserWidget;
35
typedef struct _UserWidgetClass UserWidgetClass;
36
typedef struct _UserWidgetPrivate UserWidgetPrivate;
38
struct _UserWidgetClass
40
GtkMenuItemClass parent_class;
47
UserWidgetPrivate * priv;
50
GType user_widget_get_type (void) G_GNUC_CONST;
51
GtkWidget* user_widget_new(DbusmenuMenuitem *twin_item);