]> git.0d.be Git - empathy.git/commitdiff
use tp_value_array_unpack
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 21 Apr 2010 08:33:25 +0000 (10:33 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 27 Apr 2010 07:54:17 +0000 (09:54 +0200)
libempathy/empathy-contact.c

index 4c1b34cadeb18b776e38797f317c57f71f1093b5..e8b38846f435208ebf5f8340e7f8a62badddd941 100644 (file)
@@ -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);