summaryrefslogtreecommitdiff
path: root/applets/notification_area/status-notifier/sn-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/status-notifier/sn-item.h
parent7d39b2e82f46777efa67224f078c1cec9e827654 (diff)
downloadmate-panel-da419c619744efc754e72df2e2101a32adca8a37.tar.bz2
mate-panel-da419c619744efc754e72df2e2101a32adca8a37.tar.xz
Lower GLib dependency
Diffstat (limited to 'applets/notification_area/status-notifier/sn-item.h')
-rw-r--r--applets/notification_area/status-notifier/sn-item.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/applets/notification_area/status-notifier/sn-item.h b/applets/notification_area/status-notifier/sn-item.h
index c414b942..de7de892 100644
--- a/applets/notification_area/status-notifier/sn-item.h
+++ b/applets/notification_area/status-notifier/sn-item.h
@@ -22,8 +22,12 @@
G_BEGIN_DECLS
-#define SN_TYPE_ITEM sn_item_get_type ()
-G_DECLARE_DERIVABLE_TYPE (SnItem, sn_item, SN, ITEM, GtkButton)
+#define SN_TYPE_ITEM (sn_item_get_type ())
+#define SN_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SN_TYPE_ITEM, SnItem))
+#define SN_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SN_TYPE_ITEM, SnItemClass))
+#define SN_IS_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SN_TYPE_ITEM))
+#define SN_IS_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SN_TYPE_ITEM))
+#define SN_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SN_TYPE_ITEM, SnItemClass))
typedef enum
{
@@ -31,6 +35,17 @@ typedef enum
SN_ITEM_ORIENTATION_VERTICAL
} SnItemOrientation;
+typedef struct _SnItem SnItem;
+typedef struct _SnItemPrivate SnItemPrivate;
+typedef struct _SnItemClass SnItemClass;
+
+struct _SnItem
+{
+ GtkButtonClass parent_instance;
+
+ SnItemPrivate *priv;
+};
+
struct _SnItemClass
{
GtkButtonClass parent_class;
@@ -60,6 +75,7 @@ struct _SnItemClass
SnItemOrientation orientation);
};
+GType sn_item_get_type (void);
const gchar *sn_item_get_bus_name (SnItem *item);
const gchar *sn_item_get_object_path (SnItem *item);