aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-contact-manager.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-03-08 22:52:54 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-03-15 16:28:40 +0800
commit6a74d80616929d756322a1cb61ab890d16c43e99 (patch)
tree56b50cc49f36f042dcced352ac74796d7ff309c1 /libempathy/empathy-contact-manager.c
parent1e8b4cff641adf7cd0a17a1fe429ada46f99907f (diff)
downloadgsoc2013-empathy-6a74d80616929d756322a1cb61ab890d16c43e99.tar
gsoc2013-empathy-6a74d80616929d756322a1cb61ab890d16c43e99.tar.gz
gsoc2013-empathy-6a74d80616929d756322a1cb61ab890d16c43e99.tar.bz2
gsoc2013-empathy-6a74d80616929d756322a1cb61ab890d16c43e99.tar.lz
gsoc2013-empathy-6a74d80616929d756322a1cb61ab890d16c43e99.tar.xz
gsoc2013-empathy-6a74d80616929d756322a1cb61ab890d16c43e99.tar.zst
gsoc2013-empathy-6a74d80616929d756322a1cb61ab890d16c43e99.zip
log an error if {Add,Remove}FavouriteContact failed
Diffstat (limited to 'libempathy/empathy-contact-manager.c')
-rw-r--r--libempathy/empathy-contact-manager.c24
1 files changed, 22 insertions, 2 deletions
diff --git a/libempathy/empathy-contact-manager.c b/libempathy/empathy-contact-manager.c
index a10f6076c..a3f7575a3 100644
--- a/libempathy/empathy-contact-manager.c
+++ b/libempathy/empathy-contact-manager.c
@@ -226,6 +226,16 @@ contact_manager_is_favourite (EmpathyContactList *manager,
}
static void
+add_favourite_contact_cb (TpProxy *proxy,
+ const GError *error,
+ gpointer user_data,
+ GObject *weak_object)
+{
+ if (error != NULL)
+ DEBUG ("AddFavouriteContact failed: %s", error->message);
+}
+
+static void
contact_manager_add_favourite (EmpathyContactList *manager,
EmpathyContact *contact)
{
@@ -244,7 +254,17 @@ contact_manager_add_favourite (EmpathyContactList *manager,
emp_cli_logger_call_add_favourite_contact (priv->logger, -1,
account_name,
empathy_contact_get_id (contact),
- NULL, NULL, NULL, NULL);
+ add_favourite_contact_cb, NULL, NULL, G_OBJECT (manager));
+}
+
+static void
+remove_favourite_contact_cb (TpProxy *proxy,
+ const GError *error,
+ gpointer user_data,
+ GObject *weak_object)
+{
+ if (error != NULL)
+ DEBUG ("RemoveFavouriteContact failed: %s", error->message);
}
static void
@@ -266,7 +286,7 @@ contact_manager_remove_favourite (EmpathyContactList *manager,
emp_cli_logger_call_remove_favourite_contact (priv->logger, -1,
account_name,
empathy_contact_get_id (contact),
- NULL, NULL, NULL, NULL);
+ remove_favourite_contact_cb, NULL, NULL, G_OBJECT (manager));
}
static void