summaryrefslogtreecommitdiff
path: root/telepathy-glib/presence-mixin.h
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2008-11-06 17:30:17 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2008-11-06 17:30:17 +0000
commite06b55bd8adbf379ee1037fc8eae2c4adaaff3e0 (patch)
treebb920141546470f9bcbbbefa248d7d09d8b9493d /telepathy-glib/presence-mixin.h
parent989f123c35a62c21d04e14e47751fec09d6de2cb (diff)
downloadtelepathy-glib-e06b55bd8adbf379ee1037fc8eae2c4adaaff3e0.tar.gz
TpPresenceMixin: allow things with the mixin to be subclassed
Diffstat (limited to 'telepathy-glib/presence-mixin.h')
-rw-r--r--telepathy-glib/presence-mixin.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/telepathy-glib/presence-mixin.h b/telepathy-glib/presence-mixin.h
index 37ad7ded9..93ad88b58 100644
--- a/telepathy-glib/presence-mixin.h
+++ b/telepathy-glib/presence-mixin.h
@@ -225,16 +225,14 @@ struct _TpPresenceMixin {
#define TP_PRESENCE_MIXIN_CLASS_OFFSET_QUARK \
(tp_presence_mixin_class_get_offset_quark ())
#define TP_PRESENCE_MIXIN_CLASS_OFFSET(o) \
- (GPOINTER_TO_UINT (g_type_get_qdata (G_OBJECT_CLASS_TYPE (o), \
- TP_PRESENCE_MIXIN_CLASS_OFFSET_QUARK)))
+ tp_mixin_class_get_offset (o, TP_PRESENCE_MIXIN_CLASS_OFFSET_QUARK)
#define TP_PRESENCE_MIXIN_CLASS(o) \
((TpPresenceMixinClass *) tp_mixin_offset_cast (o, \
TP_PRESENCE_MIXIN_CLASS_OFFSET (o)))
#define TP_PRESENCE_MIXIN_OFFSET_QUARK (tp_presence_mixin_get_offset_quark ())
#define TP_PRESENCE_MIXIN_OFFSET(o) \
- (GPOINTER_TO_UINT (g_type_get_qdata (G_OBJECT_TYPE (o), \
- TP_PRESENCE_MIXIN_OFFSET_QUARK)))
+ tp_mixin_instance_get_offset (o, TP_PRESENCE_MIXIN_OFFSET_QUARK)
#define TP_PRESENCE_MIXIN(o) \
((TpPresenceMixin *) tp_mixin_offset_cast (o, TP_PRESENCE_MIXIN_OFFSET (o)))