aboutsummaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--configure.ac2
-rw-r--r--libempathy/empathy-individual-manager.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 3563e6d9c..75436c176 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,7 +31,7 @@ AC_COPYRIGHT([
# Minimal version required
# Hardp deps
-FOLKS_REQUIRED=0.1.8
+FOLKS_REQUIRED=0.1.9
GCONF_REQUIRED=1.2.0
GLIB_REQUIRED=2.25.9
GTK_REQUIRED=2.21.2
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,