aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-individual-manager.c
diff options
context:
space:
mode:
authorTravis Reitter <treitter@gmail.com>2010-07-13 14:23:24 +0800
committerTravis Reitter <treitter@gmail.com>2010-07-21 07:12:37 +0800
commit7beead812ce0f9cf5b96233505f28ca479d58fd1 (patch)
treefe20376bbde41feccaed282f99693cde57007997 /libempathy/empathy-individual-manager.c
parente135f5a5112058e61bb20357f34f69e63a4cc942 (diff)
downloadgsoc2013-empathy-7beead812ce0f9cf5b96233505f28ca479d58fd1.tar
gsoc2013-empathy-7beead812ce0f9cf5b96233505f28ca479d58fd1.tar.gz
gsoc2013-empathy-7beead812ce0f9cf5b96233505f28ca479d58fd1.tar.bz2
gsoc2013-empathy-7beead812ce0f9cf5b96233505f28ca479d58fd1.tar.lz
gsoc2013-empathy-7beead812ce0f9cf5b96233505f28ca479d58fd1.tar.xz
gsoc2013-empathy-7beead812ce0f9cf5b96233505f28ca479d58fd1.tar.zst
gsoc2013-empathy-7beead812ce0f9cf5b96233505f28ca479d58fd1.zip
Adjust to the new add_persona_from_details() API.
Diffstat (limited to 'libempathy/empathy-individual-manager.c')
-rw-r--r--libempathy/empathy-individual-manager.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libempathy/empathy-individual-manager.c b/libempathy/empathy-individual-manager.c
index 58a020bb6..de0add457 100644
--- a/libempathy/empathy-individual-manager.c
+++ b/libempathy/empathy-individual-manager.c
@@ -293,6 +293,7 @@ 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,8 +312,9 @@ empathy_individual_manager_add_from_contact (EmpathyIndividualManager *self,
store_id = tp_proxy_get_object_path (TP_PROXY (account));
details = g_hash_table_new (g_str_hash, g_str_equal);
- g_hash_table_insert (details, "contact",
- (gchar*) empathy_contact_get_id (contact));
+ g_value_init (&value, G_TYPE_STRING);
+ g_value_set_string (&value, empathy_contact_get_id (contact));
+ g_hash_table_insert (details, "contact", &value);
folks_individual_aggregator_add_persona_from_details (
priv->aggregator, NULL, "telepathy", store_id, details,