[Telepathy-commits] [telepathy-doc/master] 2008-12-15 Murray Cumming <murrayc at murrayc.com>
Murray Cumming
murrayc at murrayc.com
Mon Jan 5 00:19:48 PST 2009
* docs/examples/list_contacts/main.c: Do not null-terminated the array
given to tp_connection_get_contacts_by_handle() though I still get an
error about handle #2 having no contact-id.
---
ChangeLog | 6 ++++++
docs/examples/list_contacts/main.c | 3 ++-
docs/examples/send_message/main.c | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6048eac..3d0bae0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-15 Murray Cumming <murrayc at murrayc.com>
+
+ * docs/examples/list_contacts/main.c: Do not null-terminated the array
+ given to tp_connection_get_contacts_by_handle() though I still get an
+ error about handle #2 having no contact-id.
+
2008-12-23 Murray Cumming <murrayc at murrayc.com>
* docs/book/insert_example_code.pl: Base this on the gtkmm-documentation
diff --git a/docs/examples/list_contacts/main.c b/docs/examples/list_contacts/main.c
index ec178dd..bbcb341 100644
--- a/docs/examples/list_contacts/main.c
+++ b/docs/examples/list_contacts/main.c
@@ -94,11 +94,12 @@ void on_connection_ready (TpConnection *connection,
/* Get a GArray instead of a TpIntSet,
* so we can easily create a normal array: */
- GArray *members_array = g_array_new (TRUE, TRUE, sizeof(guint));
+ GArray *members_array = g_array_new (FALSE, TRUE, sizeof(guint));
TpIntSetIter iter = TP_INTSET_ITER_INIT (channel_members_set );
while (tp_intset_iter_next (&iter))
{
g_array_append_val (members_array, iter.element);
+ g_printf("DEBUG: handle: %d\n", iter.element);
}
channel_members_set = NULL; /* We don't need this anymore. */
diff --git a/docs/examples/send_message/main.c b/docs/examples/send_message/main.c
index 562e40d..ef82874 100644
--- a/docs/examples/send_message/main.c
+++ b/docs/examples/send_message/main.c
@@ -342,7 +342,7 @@ main (int argc, char **argv)
g_hash_table_insert (parameters, "account", value);
value = tp_g_value_slice_new (G_TYPE_STRING);
- g_value_set_static_string (value, "luftjab");
+ g_value_set_static_string (value, "passwordTODO");
g_hash_table_insert (parameters, "password", value);
/* This jabber-specific parameter can avoid clashes with
--
1.5.6.5
More information about the Telepathy-commits
mailing list