summaryrefslogtreecommitdiff
path: root/tests/lib/simple-conn.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2014-04-08 15:42:13 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-04-08 15:42:13 +0100
commitef19e86d79fe958577b011ef4dc8f3f2c44e31de (patch)
tree14a95f9b3e532d045df9f2145a5b6e7a77ba1c3c /tests/lib/simple-conn.c
parentf6542638a5377e6659740bd5001db1b2ae15d90f (diff)
TpExportableChannel: turn channel-properties into a GVariantrm-dbus-glib-properties1
Diffstat (limited to 'tests/lib/simple-conn.c')
-rw-r--r--tests/lib/simple-conn.c21
1 files changed, 18 insertions, 3 deletions
diff --git a/tests/lib/simple-conn.c b/tests/lib/simple-conn.c
index be1934de7..6b2f4923c 100644
--- a/tests/lib/simple-conn.c
+++ b/tests/lib/simple-conn.c
@@ -335,7 +335,15 @@ tp_tests_simple_connection_ensure_text_chan (TpTestsSimpleConnection *self,
g_object_get (chan, "object-path", &chan_path, NULL);
if (props != NULL)
- g_object_get (chan, "channel-properties", props, NULL);
+ {
+ GVariant *tmp;
+
+ g_object_get (chan,
+ "channel-properties", &tmp,
+ NULL);
+ *props = tp_asv_from_vardict (tmp);
+ g_variant_unref (tmp);
+ }
return chan_path;
}
@@ -379,8 +387,15 @@ tp_tests_simple_connection_ensure_room_list_chan (TpTestsSimpleConnection *self,
}
if (props != NULL)
- g_object_get (self->priv->room_list_chan,
- "channel-properties", props, NULL);
+ {
+ GVariant *tmp;
+
+ g_object_get (self->priv->room_list_chan,
+ "channel-properties", &tmp,
+ NULL);
+ *props = tp_asv_from_vardict (tmp);
+ g_variant_unref (tmp);
+ }
return chan_path;
}