Back to index

indicator-session  12.10.0
user-widget.h
Go to the documentation of this file.
00001 /*
00002 Copyright 2011 Canonical Ltd.
00003 
00004 Authors:
00005     Conor Curran <conor.curran@canonical.com>
00006 
00007 This program is free software: you can redistribute it and/or modify it 
00008 under the terms of the GNU General Public License version 3, as published 
00009 by the Free Software Foundation.
00010 
00011 This program is distributed in the hope that it will be useful, but 
00012 WITHOUT ANY WARRANTY; without even the implied warranties of 
00013 MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 
00014 PURPOSE.  See the GNU General Public License for more details.
00015 
00016 You should have received a copy of the GNU General Public License along 
00017 with this program.  If not, see <http://www.gnu.org/licenses/>.
00018 */
00019 #ifndef __USER_WIDGET_H__
00020 #define __USER_WIDGET_H__
00021 
00022 #include <gtk/gtk.h>
00023 #include <libdbusmenu-gtk/menuitem.h>
00024 
00025 G_BEGIN_DECLS
00026 
00027 #define USER_WIDGET_TYPE            (user_widget_get_type ())
00028 #define USER_WIDGET(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), USER_WIDGET_TYPE, UserWidget))
00029 #define USER_WIDGET_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), USER_WIDGET_TYPE, UserWidgetClass))
00030 #define IS_USER_WIDGET(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), USER_WIDGET_TYPE))
00031 #define IS_USER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), USER_WIDGET_TYPE))
00032 #define USER_WIDGET_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), USER_WIDGET_TYPE, UserWidgetClass))
00033 
00034 typedef struct _UserWidget        UserWidget;
00035 typedef struct _UserWidgetClass   UserWidgetClass;
00036 typedef struct _UserWidgetPrivate UserWidgetPrivate;
00037 
00038 struct _UserWidgetClass
00039 {
00040   GtkMenuItemClass parent_class;
00041 };
00042 
00043 struct _UserWidget
00044 {
00045   /*< private >*/
00046   GtkMenuItem parent;
00047   UserWidgetPrivate * priv;
00048 };
00049 
00050 GType user_widget_get_type (void) G_GNUC_CONST;
00051 GtkWidget* user_widget_new(DbusmenuMenuitem *twin_item);
00052 
00053 G_END_DECLS
00054 
00055 #endif