[empathy] use tp_value_array_unpack
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] use tp_value_array_unpack
- Date: Tue, 27 Apr 2010 07:55:10 +0000 (UTC)
commit 749997ed48b485fa703d4c417a4ee3224955fe6e
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Apr 21 10:33:25 2010 +0200
use tp_value_array_unpack
libempathy/empathy-contact.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 4c1b34c..e8b3884 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -1413,9 +1413,9 @@ tp_caps_to_capabilities (TpCapabilities *caps)
const gchar *chan_type;
class_struct = g_ptr_array_index (classes, i);
- fixed_prop = g_value_get_boxed (g_value_array_get_nth (class_struct, 0));
- allowed_prop = g_value_get_boxed (g_value_array_get_nth (
- class_struct, 1));
+ tp_value_array_unpack (class_struct, 2,
+ &fixed_prop,
+ &allowed_prop);
handle_type = tp_asv_get_uint32 (fixed_prop,
TP_IFACE_CHANNEL ".TargetHandleType", NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]