summaryrefslogtreecommitdiff
path: root/applets/notification_area/na-item.h
diff options
context:
space:
mode:
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,