~ted/indicator-sound/greeter-control

« back to all changes in this revision

Viewing changes to src/transport-widget.h

  • Committer: Conor Curran
  • Date: 2010-06-15 13:03:50 UTC
  • mfrom: (80.1.19 trunk.0.1)
  • Revision ID: conor.curran@canonical.com-20100615130350-6r8k5yu9vbarrfxr
merge with the custom controls branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright 2010 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 __TRANSPORT_WIDGET_H__
 
20
#define __TRANSPORT_WIDGET_H__
 
21
 
 
22
#include <gtk/gtkmenuitem.h>
 
23
#include <libdbusmenu-gtk/menu.h>
 
24
 
 
25
G_BEGIN_DECLS
 
26
 
 
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))
 
33
 
 
34
typedef struct _TransportWidget      TransportWidget;
 
35
typedef struct _TransportWidgetClass TransportWidgetClass;
 
36
 
 
37
struct _TransportWidgetClass {
 
38
          GtkMenuItemClass parent_class;
 
39
};
 
40
 
 
41
struct _TransportWidget {
 
42
          GtkMenuItem parent;
 
43
};
 
44
 
 
45
GType transport_widget_get_type (void);
 
46
GtkWidget* transport_widget_new(DbusmenuMenuitem *twin_item);
 
47
 
 
48
G_END_DECLS
 
49
 
 
50
#endif
 
51