aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-10-20 18:57:31 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-11-03 15:45:23 +0800
commita2421fe9c16830e31ffab506d65a4463fd2b5e03 (patch)
tree44b80341468167d7ae0b1be6ba7451d1d59c1fca
parent897caa5f59139e690778f006ce69518cc484a25a (diff)
downloadgsoc2013-empathy-a2421fe9c16830e31ffab506d65a4463fd2b5e03.tar
gsoc2013-empathy-a2421fe9c16830e31ffab506d65a4463fd2b5e03.tar.gz
gsoc2013-empathy-a2421fe9c16830e31ffab506d65a4463fd2b5e03.tar.bz2
gsoc2013-empathy-a2421fe9c16830e31ffab506d65a4463fd2b5e03.tar.lz
gsoc2013-empathy-a2421fe9c16830e31ffab506d65a4463fd2b5e03.tar.xz
gsoc2013-empathy-a2421fe9c16830e31ffab506d65a4463fd2b5e03.tar.zst
gsoc2013-empathy-a2421fe9c16830e31ffab506d65a4463fd2b5e03.zip
log an error if SetContactInfo() fails
-rw-r--r--libempathy-gtk/empathy-contact-widget.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 947fbfa76..98a2fa7c0 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -165,6 +165,24 @@ field_value_is_empty (TpContactInfoField *field)
}
static void
+set_contact_info_cb (GObject *source,
+ GAsyncResult *result,
+ gpointer user_data)
+{
+ GError *error = NULL;
+
+ if (!tp_connection_set_contact_info_finish (TP_CONNECTION (source), result,
+ &error))
+ {
+ DEBUG ("SetContactInfo() failed: %s", error->message);
+ g_error_free (error);
+ return;
+ }
+
+ DEBUG ("SetContactInfo() succeeded");
+}
+
+static void
contact_widget_save (EmpathyContactWidget *information)
{
TpConnection *connection;
@@ -190,7 +208,7 @@ contact_widget_save (EmpathyContactWidget *information)
if (information->details_to_set != NULL)
{
tp_connection_set_contact_info_async (connection,
- information->details_to_set, NULL, NULL);
+ information->details_to_set, set_contact_info_cb, NULL);
tp_contact_info_list_free (information->details_to_set);
information->details_to_set = NULL;
}