[empathy] Adjust to the new add_persona_from_details() API.
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Adjust to the new add_persona_from_details() API.
- Date: Tue, 20 Jul 2010 23:26:14 +0000 (UTC)
commit 7beead812ce0f9cf5b96233505f28ca479d58fd1
Author: Travis Reitter <treitter gmail com>
Date: Mon Jul 12 23:23:24 2010 -0700
Adjust to the new add_persona_from_details() API.
configure.ac | 2 +-
libempathy/empathy-individual-manager.c | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 3563e6d..75436c1 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 58a020b..de0add4 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]