[Telepathy-commits] [telepathy-glib/master] MessageMixin: document the exact calls to G_IMPLEMENT_INTERFACE needed

Will Thompson will.thompson at collabora.co.uk
Thu Dec 18 10:41:47 PST 2008


---
 telepathy-glib/message-mixin.c |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/telepathy-glib/message-mixin.c b/telepathy-glib/message-mixin.c
index 9b7efc1..0234a9c 100644
--- a/telepathy-glib/message-mixin.c
+++ b/telepathy-glib/message-mixin.c
@@ -35,10 +35,15 @@
  * constructor function, and tp_message_mixin_finalize() from your dispose
  * or finalize function. In the class_init function, call
  * tp_message_mixin_init_dbus_properties() to hook this mixin into the D-Bus
- * properties mixin class.
+ * properties mixin class. Finally, include the following in the fourth
+ * argument of G_DEFINE_TYPE_WITH_CODE():
  *
- * Also pass tp_message_mixin_text_iface_init() and
- * tp_message_mixin_messages_iface_init() to G_IMPLEMENT_INTERFACE().
+ * <informalexample><programlisting>
+ *  G_IMPLEMENT_INTERFACE (TP_TYPE_SVC_CHANNEL_TYPE_TEXT,
+ *    tp_message_mixin_text_iface_init);
+ *  G_IMPLEMENT_INTERFACE (TP_TYPE_SVC_CHANNEL_INTERFACE_MESSAGES,
+ *    tp_message_mixin_messages_iface_init);
+ * </programlisting></informalexample>
  *
  * To support sending messages, you must call
  * tp_message_mixin_implement_sending() in the constructor function. If you do
-- 
1.5.6.5




More information about the Telepathy-commits mailing list