diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-03-18 16:37:17 +0100 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-03-18 16:37:17 +0100 |
commit | f27bd6cdf16f258d0ad76ab5222cc74c64796a11 (patch) | |
tree | 6f10f5974714cdfde1675a98b7e4be8b57f6a278 | |
parent | c820c8d94ca0394ff1663d1e5b31fef2e5e7a8d1 (diff) |
echo-chan.c: sync with tp-glib next
-rw-r--r-- | tests/lib/telepathy/contactlist/echo-chan.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/lib/telepathy/contactlist/echo-chan.c b/tests/lib/telepathy/contactlist/echo-chan.c index 64423780..c5a6465d 100644 --- a/tests/lib/telepathy/contactlist/echo-chan.c +++ b/tests/lib/telepathy/contactlist/echo-chan.c @@ -151,7 +151,7 @@ text_send (GObject *object, TpHandle target = tp_base_channel_get_target_handle (TP_BASE_CHANNEL (self)); gchar *echo; gint64 now = time (NULL); - const GHashTable *part; + GVariant *part; const gchar *text; TpMessage *msg; @@ -159,8 +159,9 @@ text_send (GObject *object, * call tp_text_mixin_receive or tp_text_mixin_receive_with_flags * in response to network events */ - part = tp_message_peek (message, 1); - text = tp_asv_get_string (part, "content"); + part = tp_message_dup_part (message, 1); + + g_variant_lookup (part, "content", "&s", &text); switch (type) { @@ -178,6 +179,7 @@ text_send (GObject *object, type, text); echo_type = TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL; } + g_variant_unref (part); tp_message_mixin_sent (object, message, 0, "", NULL); |