summaryrefslogtreecommitdiff
path: root/telepathy-glib/properties-mixin.h
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2008-11-06 17:30:05 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2008-11-06 17:30:05 +0000
commit989f123c35a62c21d04e14e47751fec09d6de2cb (patch)
treed885144f1319aa77037aa8c54aa02451fed1608b /telepathy-glib/properties-mixin.h
parentf2a711b441e2cd6d3fae741ef1aa631855305158 (diff)
downloadtelepathy-glib-989f123c35a62c21d04e14e47751fec09d6de2cb.tar.gz
TpPropertiesMixin: allow things with the mixin to be subclassed
Diffstat (limited to 'telepathy-glib/properties-mixin.h')
-rw-r--r--telepathy-glib/properties-mixin.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/telepathy-glib/properties-mixin.h b/telepathy-glib/properties-mixin.h
index a6069b397..e3faa578a 100644
--- a/telepathy-glib/properties-mixin.h
+++ b/telepathy-glib/properties-mixin.h
@@ -149,8 +149,7 @@ typedef struct _TpPropertiesMixin TpPropertiesMixin;
#define TP_PROPERTIES_MIXIN_CLASS_OFFSET_QUARK \
(tp_properties_mixin_class_get_offset_quark ())
#define TP_PROPERTIES_MIXIN_CLASS_OFFSET(o) \
- (GPOINTER_TO_UINT (g_type_get_qdata (G_OBJECT_CLASS_TYPE (o), \
- TP_PROPERTIES_MIXIN_CLASS_OFFSET_QUARK)))
+ tp_mixin_class_get_offset (o, TP_PROPERTIES_MIXIN_CLASS_OFFSET_QUARK)
#define TP_PROPERTIES_MIXIN_CLASS(o) \
((TpPropertiesMixinClass *) tp_mixin_offset_cast (o,\
TP_PROPERTIES_MIXIN_CLASS_OFFSET (o)))
@@ -158,8 +157,7 @@ typedef struct _TpPropertiesMixin TpPropertiesMixin;
#define TP_PROPERTIES_MIXIN_OFFSET_QUARK \
(tp_properties_mixin_get_offset_quark ())
#define TP_PROPERTIES_MIXIN_OFFSET(o) \
- (GPOINTER_TO_UINT (g_type_get_qdata (G_OBJECT_TYPE (o), \
- TP_PROPERTIES_MIXIN_OFFSET_QUARK)))
+ tp_mixin_instance_get_offset (o, TP_PROPERTIES_MIXIN_OFFSET_QUARK)
#define TP_PROPERTIES_MIXIN(o) \
((TpPropertiesMixin *) tp_mixin_offset_cast (o, \
TP_PROPERTIES_MIXIN_OFFSET (o)))