diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-11-06 17:30:05 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-11-06 17:30:05 +0000 |
commit | 989f123c35a62c21d04e14e47751fec09d6de2cb (patch) | |
tree | d885144f1319aa77037aa8c54aa02451fed1608b /telepathy-glib/properties-mixin.h | |
parent | f2a711b441e2cd6d3fae741ef1aa631855305158 (diff) | |
download | telepathy-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.h | 6 |
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))) |