| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#ifndef __GTK_SERVICE_H__ |
| 23 |
#define __GTK_SERVICE_H__ |
| 24 |
|
| 25 |
#include <gtk/gtk.h> |
| 26 |
|
| 27 |
#include <connman-interface.h> |
| 28 |
|
| 29 |
G_BEGIN_DECLS |
| 30 |
|
| 31 |
#define GTK_TYPE_SERVICE \ |
| 32 |
(gtk_service_get_type()) |
| 33 |
#define GTK_SERVICE(obj) \ |
| 34 |
(G_TYPE_CHECK_INSTANCE_CAST((obj), \ |
| 35 |
GTK_TYPE_SERVICE, GtkService)) |
| 36 |
#define GTK_SERVICE_CLASS(klass) \ |
| 37 |
(G_TYPE_CHECK_CLASS_CAST((klass), \ |
| 38 |
GTK_TYPE_SERVICE, GtkServiceClass)) |
| 39 |
#define GTK_IS_SERVICE(obj) \ |
| 40 |
(G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_SERVICE)) |
| 41 |
#define GTK_IS_SERVICE_CLASS(klass) \ |
| 42 |
(G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_SERVICE)) |
| 43 |
#define GTK_SERVICE_GET_CLASS(obj) \ |
| 44 |
(G_TYPE_INSTANCE_GET_CLASS((obj), \ |
| 45 |
GTK_TYPE_SERVICE, GtkServiceClass)) |
| 46 |
|
| 47 |
typedef struct _GtkService GtkService; |
| 48 |
typedef struct _GtkServiceClass GtkServiceClass; |
| 49 |
typedef struct _GtkServicePrivate GtkServicePrivate; |
| 50 |
|
| 51 |
struct _GtkService { |
| 52 |
GtkMenuItem parent_class; |
| 53 |
|
| 54 |
GtkServicePrivate *priv; |
| 55 |
|
| 56 |
gchar *path; |
| 57 |
}; |
| 58 |
|
| 59 |
struct _GtkServiceClass { |
| 60 |
GtkMenuItemClass parent_class; |
| 61 |
}; |
| 62 |
|
| 63 |
GType gtk_service_get_type(void) G_GNUC_CONST; |
| 64 |
GtkService *gtk_service_new(const gchar *path); |
| 65 |
|
| 66 |
G_END_DECLS |
| 67 |
|
| 68 |
#endif |