2
Copyright 2010 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 __TRANSPORT_WIDGET_H__
20
#define __TRANSPORT_WIDGET_H__
22
#include <gtk/gtkmenuitem.h>
23
#include <libdbusmenu-gtk/menu.h>
27
#define TRANSPORT_WIDGET_TYPE (transport_widget_get_type ())
28
#define TRANSPORT_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRANSPORT_WIDGET_TYPE, TransportWidget))
29
#define TRANSPORT_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRANSPORT_WIDGET_TYPE, TransportWidgetClass))
30
#define IS_TRANSPORT_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRANSPORT_WIDGET_TYPE))
31
#define IS_TRANSPORT_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRANSPORT_WIDGET_TYPE))
32
#define TRANSPORT_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRANSPORT_WIDGET_TYPE, TransportWidgetClass))
34
typedef struct _TransportWidget TransportWidget;
35
typedef struct _TransportWidgetClass TransportWidgetClass;
37
struct _TransportWidgetClass {
38
GtkMenuItemClass parent_class;
41
struct _TransportWidget {
45
GType transport_widget_get_type (void);
46
GtkWidget* transport_widget_new(DbusmenuMenuitem *twin_item);