summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2012-04-08 11:01:50 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2012-04-08 11:01:50 +0100
commit7b7f61a8dae3f8de7436378ef3ae569a5323fcef (patch)
tree8417388e063edad76cca76aa4dcc9e34f4a27134 /src
parent7b95b1c716cb1aea585e4341dfb37592b8b4e433 (diff)
downloadtelepathy-idle-7b7f61a8dae3f8de7436378ef3ae569a5323fcef.tar.gz
RoomlistManager: use tp_asv_new()
Diffstat (limited to 'src')
-rw-r--r--src/idle-roomlist-manager.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/idle-roomlist-manager.c b/src/idle-roomlist-manager.c
index ced4be9..ed536b6 100644
--- a/src/idle-roomlist-manager.c
+++ b/src/idle-roomlist-manager.c
@@ -241,19 +241,12 @@ _roomlist_manager_foreach_class (TpChannelManager *self,
TpChannelManagerChannelClassFunc func,
gpointer user_data)
{
- GHashTable *table;
- GValue *value;
-
- table = g_hash_table_new_full (g_str_hash, g_str_equal,
- NULL, (GDestroyNotify) tp_g_value_slice_free);
-
- value = tp_g_value_slice_new (G_TYPE_STRING);
- g_value_set_static_string (value, TP_IFACE_CHANNEL_TYPE_ROOM_LIST);
- g_hash_table_insert (table, (gpointer) roomlist_channel_fixed_properties[0], value);
-
- value = tp_g_value_slice_new (G_TYPE_UINT);
- g_value_set_uint (value, TP_HANDLE_TYPE_NONE);
- g_hash_table_insert (table, (gpointer) roomlist_channel_fixed_properties[1], value);
+ GHashTable *table = tp_asv_new (
+ roomlist_channel_fixed_properties[0], G_TYPE_STRING,
+ TP_IFACE_CHANNEL_TYPE_ROOM_LIST,
+ roomlist_channel_fixed_properties[1], G_TYPE_UINT,
+ TP_HANDLE_TYPE_NONE,
+ NULL);
func (self, table, roomlist_channel_allowed_properties, user_data);