aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-21 16:33:25 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-27 15:54:17 +0800
commit749997ed48b485fa703d4c417a4ee3224955fe6e (patch)
tree3a5196c5ad8f883e533a8c3ab990a2c024754bfe /libempathy
parent623c65fa0d997818b6c955c01eaf0783c24ccf14 (diff)
downloadgsoc2013-empathy-749997ed48b485fa703d4c417a4ee3224955fe6e.tar.gz
gsoc2013-empathy-749997ed48b485fa703d4c417a4ee3224955fe6e.tar.zst
gsoc2013-empathy-749997ed48b485fa703d4c417a4ee3224955fe6e.zip
use tp_value_array_unpack
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-contact.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 4c1b34cad..e8b38846f 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);