[empathy] Take advantage of tp_asv_new().
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Take advantage of tp_asv_new().
- Date: Tue, 20 Jul 2010 23:26:24 +0000 (UTC)
commit f3e4307c1cfda8b363ac516e789a3b9668df23b3
Author: Travis Reitter <treitter gmail com>
Date: Wed Jul 14 10:01:43 2010 -0700
Take advantage of tp_asv_new().
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 de0add4..61f61f9 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]