[telepathy-doc/master] Add filtering channels example to docs

Davyd Madeley davyd at madeley.id.au
Wed Apr 1 21:45:38 PDT 2009


---
 docs/book/C/channel.xml                            |    8 +++++++-
 .../glib_get_user_defined_groups/example.c         |    2 ++
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/docs/book/C/channel.xml b/docs/book/C/channel.xml
index adf0138..5b8e9e5 100644
--- a/docs/book/C/channel.xml
+++ b/docs/book/C/channel.xml
@@ -541,8 +541,14 @@
       <interfacename>Channel.Type.ContactList</interfacename> and
       <property>Channel.TargetHandleType</property> equals
       <type>Handle_Type_Group</type> will yield the user-defined contact
-      groups.
+      groups (demonstrated in
+      <xref linkend="ex.channel.contactlist.user-defined.glib"/>).
      </para>
+
+     <example id="ex.channel.contactlist.user-defined.glib"
+              file="glib_get_user_defined_groups/example.c">
+      <title>Filtering NewChannels</title>
+     </example>
     </sect2>
   
   </sect1>
diff --git a/docs/examples/glib_get_user_defined_groups/example.c b/docs/examples/glib_get_user_defined_groups/example.c
index b1a89e0..271dba6 100644
--- a/docs/examples/glib_get_user_defined_groups/example.c
+++ b/docs/examples/glib_get_user_defined_groups/example.c
@@ -25,6 +25,7 @@ handle_error (const GError *error)
 	}
 }
 
+/* begin ex.channel.contactlist.user-defined.glib */
 static void
 new_channels_cb (TpConnection		*conn,
                  const GPtrArray	*channels,
@@ -63,6 +64,7 @@ new_channels_cb (TpConnection		*conn,
 		}
 	}
 }
+/* end ex.channel.contactlist.user-defined.glib */
 
 static void
 get_channels_cb (TpProxy	*proxy,
-- 
1.5.6.5




More information about the telepathy-commits mailing list