summaryrefslogtreecommitdiff
path: root/applets/notification_area/na-host.h
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2017-01-20 11:03:03 +0100
committerlukefromdc <[email protected]>2017-01-23 13:49:34 -0500
commitda419c619744efc754e72df2e2101a32adca8a37 (patch)
tree37df54c88607741686a5e2a50a49b90811c021a2 /applets/notification_area/na-host.h
parent7d39b2e82f46777efa67224f078c1cec9e827654 (diff)
downloadmate-panel-da419c619744efc754e72df2e2101a32adca8a37.tar.bz2
mate-panel-da419c619744efc754e72df2e2101a32adca8a37.tar.xz
Lower GLib dependency
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