diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-04-09 19:22:08 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-04-09 19:22:08 +0100 |
commit | f0705f8e947ddaf3de15c757ff7528f0bfe326d9 (patch) | |
tree | 79b0b75e8a17ac6d2f15743aac250983e69c62fe | |
parent | 044b8126583622bb8cbc42530087a44fb3f98ba8 (diff) |
Adapt for GVariant-based tp_group_mixin_change_members()group-mixin
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=77190
-rw-r--r-- | src/muc-channel.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/muc-channel.c b/src/muc-channel.c index 7ccef6e80..d3087ad9e 100644 --- a/src/muc-channel.c +++ b/src/muc-channel.c @@ -356,20 +356,22 @@ change_members (GObject *obj, TpHandle actor, TpChannelGroupChangeReason reason) { - GHashTable *details; + GVariantDict details; - details = tp_asv_new ( - "actor", G_TYPE_UINT, actor, - "change-reason", G_TYPE_UINT, reason, - NULL); + g_variant_dict_init (&details, NULL); + + g_variant_dict_insert_value (&details, "actor", + g_variant_new_uint32 (actor)); + g_variant_dict_insert_value (&details, "change-reason", + g_variant_new_uint32 (reason)); if (message != NULL) - tp_asv_set_string (details, "message", message); + g_variant_dict_insert_value (&details, "message", + g_variant_new_string (message)); tp_group_mixin_change_members (obj, - add, del, add_local_pending, add_remote_pending, details); - - g_hash_table_unref (details); + add, del, add_local_pending, add_remote_pending, + g_variant_dict_end (&details)); } static void |