aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-individual-manager.c
diff options
context:
space:
mode:
authorTravis Reitter <treitter@gmail.com>2010-07-27 00:24:51 +0800
committerTravis Reitter <treitter@gmail.com>2010-07-27 18:51:15 +0800
commite854ea2dad6350cc1787f9ac9ee1012c7c2ebd77 (patch)
treec05032253e11d1a07e1085ab4293efb09aa14906 /libempathy/empathy-individual-manager.c
parentda3c11790a80db7fce92778352481bafd95bf939 (diff)
downloadgsoc2013-empathy-e854ea2dad6350cc1787f9ac9ee1012c7c2ebd77.tar
gsoc2013-empathy-e854ea2dad6350cc1787f9ac9ee1012c7c2ebd77.tar.gz
gsoc2013-empathy-e854ea2dad6350cc1787f9ac9ee1012c7c2ebd77.tar.bz2
gsoc2013-empathy-e854ea2dad6350cc1787f9ac9ee1012c7c2ebd77.tar.lz
gsoc2013-empathy-e854ea2dad6350cc1787f9ac9ee1012c7c2ebd77.tar.xz
gsoc2013-empathy-e854ea2dad6350cc1787f9ac9ee1012c7c2ebd77.tar.zst
gsoc2013-empathy-e854ea2dad6350cc1787f9ac9ee1012c7c2ebd77.zip
Adjust for signature change in folks_individual_aggregator_remove_individual()
Diffstat (limited to 'libempathy/empathy-individual-manager.c')
-rw-r--r--libempathy/empathy-individual-manager.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/libempathy/empathy-individual-manager.c b/libempathy/empathy-individual-manager.c
index e10b27c7d..32442f94c 100644
--- a/libempathy/empathy-individual-manager.c
+++ b/libempathy/empathy-individual-manager.c
@@ -326,6 +326,23 @@ empathy_individual_manager_add_from_contact (EmpathyIndividualManager *self,
g_hash_table_destroy (details);
}
+static void
+aggregator_remove_individual_cb (GObject *source,
+ GAsyncResult *result,
+ gpointer user_data)
+{
+ FolksIndividualAggregator *aggregator = FOLKS_INDIVIDUAL_AGGREGATOR (source);
+ GError *error = NULL;
+
+ folks_individual_aggregator_remove_individual_finish (
+ aggregator, result, &error);
+ if (error != NULL)
+ {
+ g_warning ("failed to remove individual: %s", error->message);
+ g_clear_error (&error);
+ }
+}
+
/**
* Removes the inner contact from the server (and thus the Individual). Not
* meant for de-shelling inner personas from an Individual.
@@ -346,7 +363,8 @@ empathy_individual_manager_remove (EmpathyIndividualManager *self,
folks_individual_get_id (individual),
folks_individual_get_alias (individual));
- folks_individual_aggregator_remove_individual (priv->aggregator, individual);
+ folks_individual_aggregator_remove_individual (priv->aggregator, individual,
+ aggregator_remove_individual_cb, self);
}
static void