summaryrefslogtreecommitdiff
path: root/applets/notification_area/na-host.h
diff options
context:
space:
mode:
Diffstat (limited to 'applets/notification_area/na-host.h')
-rw-r--r--applets/notification_area/na-host.h24
1 files changed, 15 insertions, 9 deletions
diff --git a/applets/notification_area/na-host.h b/applets/notification_area/na-host.h
index 7f06678a..eeccb56f 100644
--- a/applets/notification_area/na-host.h
+++ b/applets/notification_area/na-host.h
@@ -23,8 +23,13 @@
G_BEGIN_DECLS
-#define NA_TYPE_HOST na_host_get_type ()
-G_DECLARE_INTERFACE (NaHost, na_host, NA, HOST, GObject)
+#define NA_TYPE_HOST (na_host_get_type ())
+#define NA_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NA_TYPE_HOST, NaHost))
+#define NA_IS_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NA_TYPE_HOST))
+#define NA_HOST_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), NA_TYPE_HOST, NaHostInterface))
+
+typedef struct _NaHost NaHost;
+typedef struct _NaHostInterface NaHostInterface;
struct _NaHostInterface
{
@@ -35,13 +40,14 @@ struct _NaHostInterface
GtkStyleContext *context);
};
-void na_host_force_redraw (NaHost *host);
-void na_host_style_updated (NaHost *host,
- GtkStyleContext *context);
-void na_host_emit_item_added (NaHost *host,
- NaItem *item);
-void na_host_emit_item_removed (NaHost *host,
- NaItem *item);
+GType na_host_get_type (void);
+void na_host_force_redraw (NaHost *host);
+void na_host_style_updated (NaHost *host,
+ GtkStyleContext *context);
+void na_host_emit_item_added (NaHost *host,
+ NaItem *item);
+void na_host_emit_item_removed (NaHost *host,
+ NaItem *item);
G_END_DECLS