[folks/next] echo-chan.c: sync with tp-glib next
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks/next] echo-chan.c: sync with tp-glib next
- Date: Tue, 18 Mar 2014 15:54:14 +0000 (UTC)
commit f27bd6cdf16f258d0ad76ab5222cc74c64796a11
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Mar 18 16:37:17 2014 +0100
echo-chan.c: sync with tp-glib next
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 6442378..c5a6465 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]