summaryrefslogtreecommitdiff
path: root/applets/notification_area/na-item.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-item.h
parent7d39b2e82f46777efa67224f078c1cec9e827654 (diff)
downloadmate-panel-da419c619744efc754e72df2e2101a32adca8a37.tar.bz2
mate-panel-da419c619744efc754e72df2e2101a32adca8a37.tar.xz
Lower GLib dependency
Diffstat (limited to 'applets/notification_area/na-item.h')
-rw-r--r--applets/notification_area/na-item.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/applets/notification_area/na-item.h b/applets/notification_area/na-item.h
index 30e8e676..7b9364c6 100644
--- a/applets/notification_area/na-item.h
+++ b/applets/notification_area/na-item.h
@@ -23,8 +23,13 @@
G_BEGIN_DECLS
-#define NA_TYPE_ITEM na_item_get_type ()
-G_DECLARE_INTERFACE (NaItem, na_item, NA, ITEM, GtkWidget)
+#define NA_TYPE_ITEM (na_item_get_type ())
+#define NA_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NA_TYPE_ITEM, NaItem))
+#define NA_IS_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NA_TYPE_ITEM))
+#define NA_ITEM_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), NA_TYPE_ITEM, NaItemInterface))
+
+typedef struct _NaItem NaItem;
+typedef struct _NaItemInterface NaItemInterface;
typedef enum
{
@@ -53,6 +58,7 @@ struct _NaItemInterface
cairo_t *parent_cr);
};
+GType na_item_get_type (void);
const gchar *na_item_get_id (NaItem *item);
NaItemCategory na_item_get_category (NaItem *item);
gboolean na_item_draw_on_parent (NaItem *item,