diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2011-01-28 12:02:45 +0000 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2011-01-28 12:09:18 +0000 |
commit | 796d7ee4417aab8d0e4e688468fc74619915db54 (patch) | |
tree | fc316e30412580f00a3de97096e2d958e058ba10 /telepathy-glib/presence-mixin.c | |
parent | a65f839c79c39d1ba703fa03d57110a4556b967a (diff) | |
download | telepathy-glib-796d7ee4417aab8d0e4e688468fc74619915db54.tar.gz |
Improve TpPresenceMixin introduction.
Diffstat (limited to 'telepathy-glib/presence-mixin.c')
-rw-r--r-- | telepathy-glib/presence-mixin.c | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/telepathy-glib/presence-mixin.c b/telepathy-glib/presence-mixin.c index 65df646b4..e528e0eb2 100644 --- a/telepathy-glib/presence-mixin.c +++ b/telepathy-glib/presence-mixin.c @@ -45,23 +45,32 @@ * <itemizedlist> * <listitem> * <para>use the #TpContactsMixin and - * <link linkend="telepathy-glib-dbus-properties-mixin">TpDBusPropertiesMixin</link></para> + * <link linkend="telepathy-glib-dbus-properties-mixin">TpDBusPropertiesMixin</link>;</para> * </listitem> * <listitem> * <para>pass tp_presence_mixin_simple_presence_iface_init() as an - * argument to G_IMPLEMENT_INTERFACE() + * argument to G_IMPLEMENT_INTERFACE(), like so: * </para> + * |[ + * G_DEFINE_TYPE_WITH_CODE (MyConnection, my_connection, + * TP_TYPE_BASE_CONNECTION, + * // ... + * G_IMPLEMENT_INTERFACE (TP_TYPE_SVC_CONNECTION_INTERFACE_SIMPLE_PRESENCE, + * tp_presence_mixin_simple_presence_iface_init); + * // ... + * ) + * ]| * </listitem> * <listitem> * <para> - * call tp_presence_mixin_simple_presence_init_dbus_properties in the - * #GTypeClass.class_init function + * call tp_presence_mixin_simple_presence_init_dbus_properties() in the + * #GTypeInfo class_init function; * </para> * </listitem> * <listitem> * <para> * call tp_presence_mixin_simple_presence_register_with_contacts_mixin() - * in the #GObjectClass.constructed function + * in the #GObjectClass constructed function. * </para> * </listitem> * </itemizedlist> @@ -78,10 +87,19 @@ * <para> * To use the presence mixin as the implementation of * #TpSvcConnectionInterfacePresence, use tp_presence_mixin_iface_init() as - * the function you pass to G_IMPLEMENT_INTERFACE(). - * The presence mixin implements all of the D-Bus methods in the Presence - * interface. + * the function you pass to G_IMPLEMENT_INTERFACE(), as in the following + * example. The presence mixin implements all of the D-Bus methods in the + * Presence interface. * </para> + * |[ + * G_DEFINE_TYPE_WITH_CODE (MyConnection, my_connection, + * TP_TYPE_BASE_CONNECTION, + * // ... + * G_IMPLEMENT_INTERFACE (TP_TYPE_SVC_CONNECTION_INTERFACE_PRESENCE, + * tp_presence_mixin_iface_init); + * // ... + * ) + * ]| * <para> * In telepathy-glib versions older than 0.11.13, every connection * that used the #TpPresenceMixin was required to implement |