diff options
author | Travis Reitter <treitter@gmail.com> | 2010-07-15 01:01:43 +0800 |
---|---|---|
committer | Travis Reitter <treitter@gmail.com> | 2010-07-21 07:12:37 +0800 |
commit | f3e4307c1cfda8b363ac516e789a3b9668df23b3 (patch) | |
tree | 24ea5392c8491cfafbab3c838f86ebb4cfb82aa7 | |
parent | 83b905bd5e671421b6346b328461017927440211 (diff) | |
download | gsoc2013-empathy-f3e4307c1cfda8b363ac516e789a3b9668df23b3.tar gsoc2013-empathy-f3e4307c1cfda8b363ac516e789a3b9668df23b3.tar.gz gsoc2013-empathy-f3e4307c1cfda8b363ac516e789a3b9668df23b3.tar.bz2 gsoc2013-empathy-f3e4307c1cfda8b363ac516e789a3b9668df23b3.tar.lz gsoc2013-empathy-f3e4307c1cfda8b363ac516e789a3b9668df23b3.tar.xz gsoc2013-empathy-f3e4307c1cfda8b363ac516e789a3b9668df23b3.tar.zst gsoc2013-empathy-f3e4307c1cfda8b363ac516e789a3b9668df23b3.zip |
Take advantage of tp_asv_new().
-rw-r--r-- | libempathy/empathy-individual-manager.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libempathy/empathy-individual-manager.c b/libempathy/empathy-individual-manager.c index de0add457..61f61f96d 100644 --- a/libempathy/empathy-individual-manager.c +++ b/libempathy/empathy-individual-manager.c @@ -293,7 +293,6 @@ empathy_individual_manager_add_from_contact (EmpathyIndividualManager *self, EmpathyIndividualManagerPriv *priv; GHashTable* details; TpAccount *account; - GValue value = {0}; const gchar *store_id; g_return_if_fail (EMPATHY_IS_INDIVIDUAL_MANAGER (self)); @@ -311,10 +310,9 @@ empathy_individual_manager_add_from_contact (EmpathyIndividualManager *self, account = empathy_contact_get_account (contact); store_id = tp_proxy_get_object_path (TP_PROXY (account)); - details = g_hash_table_new (g_str_hash, g_str_equal); - g_value_init (&value, G_TYPE_STRING); - g_value_set_string (&value, empathy_contact_get_id (contact)); - g_hash_table_insert (details, "contact", &value); + details = tp_asv_new ( + "contact", G_TYPE_STRING, empathy_contact_get_id (contact), + NULL); folks_individual_aggregator_add_persona_from_details ( priv->aggregator, NULL, "telepathy", store_id, details, |