diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-11-06 17:28:56 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-11-06 17:28:56 +0000 |
commit | 8fe3312a4a3048293fc08e661f06e1573a44c314 (patch) | |
tree | a72a845009b1be7c7df63229981ccc4c1a9a5853 /telepathy-glib/contacts-mixin.h | |
parent | 08481a6f4b42a64625f3c7892ce62658f1f0d37d (diff) | |
download | telepathy-glib-8fe3312a4a3048293fc08e661f06e1573a44c314.tar.gz |
TpContactsMixin: allow things with the mixin to be subclassed
Diffstat (limited to 'telepathy-glib/contacts-mixin.h')
-rw-r--r-- | telepathy-glib/contacts-mixin.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/telepathy-glib/contacts-mixin.h b/telepathy-glib/contacts-mixin.h index f374932f9..2aad0cc99 100644 --- a/telepathy-glib/contacts-mixin.h +++ b/telepathy-glib/contacts-mixin.h @@ -76,16 +76,14 @@ struct _TpContactsMixin { #define TP_CONTACTS_MIXIN_CLASS_OFFSET_QUARK \ (tp_contacts_mixin_class_get_offset_quark ()) #define TP_CONTACTS_MIXIN_CLASS_OFFSET(o) \ - (GPOINTER_TO_UINT (g_type_get_qdata (G_OBJECT_CLASS_TYPE (o), \ - TP_CONTACTS_MIXIN_CLASS_OFFSET_QUARK))) + tp_mixin_class_get_offset (o, TP_CONTACTS_MIXIN_CLASS_OFFSET_QUARK) #define TP_CONTACTS_MIXIN_CLASS(o) \ ((TpContactsMixinClass *) tp_mixin_offset_cast (o, \ TP_CONTACTS_MIXIN_CLASS_OFFSET (o))) #define TP_CONTACTS_MIXIN_OFFSET_QUARK (tp_contacts_mixin_get_offset_quark ()) #define TP_CONTACTS_MIXIN_OFFSET(o) \ - (GPOINTER_TO_UINT (g_type_get_qdata (G_OBJECT_TYPE (o), \ - TP_CONTACTS_MIXIN_OFFSET_QUARK))) + tp_mixin_instance_get_offset (o, TP_CONTACTS_MIXIN_OFFSET_QUARK) #define TP_CONTACTS_MIXIN(o) \ ((TpContactsMixin *) tp_mixin_offset_cast (o, TP_CONTACTS_MIXIN_OFFSET (o))) |