[telepathy-gabble/master] gabble_search_manager_foreach_channel_class: use tp_g_value_slice_new_string

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Wed Aug 26 09:21:57 PDT 2009


---
 src/search-manager.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/search-manager.c b/src/search-manager.c
index 472eda7..09117f7 100644
--- a/src/search-manager.c
+++ b/src/search-manager.c
@@ -224,8 +224,8 @@ gabble_search_manager_foreach_channel_class (TpChannelManager *manager,
       NULL, (GDestroyNotify) tp_g_value_slice_free);
   GValue *value;
 
-  value = tp_g_value_slice_new (G_TYPE_STRING);
-  g_value_set_static_string (value, GABBLE_IFACE_CHANNEL_TYPE_CONTACT_SEARCH);
+  value = tp_g_value_slice_new_string (
+      GABBLE_IFACE_CHANNEL_TYPE_CONTACT_SEARCH);
   g_hash_table_insert (table, (gchar *) search_channel_fixed_properties[0],
       value);
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list