From da419c619744efc754e72df2e2101a32adca8a37 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Fri, 20 Jan 2017 11:03:03 +0100 Subject: Lower GLib dependency --- applets/notification_area/na-host.h | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'applets/notification_area/na-host.h') 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 -- cgit v1.2.1