diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2009-08-05 22:39:20 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-22 21:20:44 +0800 |
commit | ce3eb60be50a9571bde936eccecc800ee54080f1 (patch) | |
tree | 38e541705e8d03cf39f8ecc0705c4fcfa4b7faff /src/empathy-account-assistant.c | |
parent | bca9fa60a556e96dbad090afcfd407dab7a4532d (diff) | |
download | gsoc2013-empathy-ce3eb60be50a9571bde936eccecc800ee54080f1.tar gsoc2013-empathy-ce3eb60be50a9571bde936eccecc800ee54080f1.tar.gz gsoc2013-empathy-ce3eb60be50a9571bde936eccecc800ee54080f1.tar.bz2 gsoc2013-empathy-ce3eb60be50a9571bde936eccecc800ee54080f1.tar.lz gsoc2013-empathy-ce3eb60be50a9571bde936eccecc800ee54080f1.tar.xz gsoc2013-empathy-ce3eb60be50a9571bde936eccecc800ee54080f1.tar.zst gsoc2013-empathy-ce3eb60be50a9571bde936eccecc800ee54080f1.zip |
Report back errors (right now just on stdout)
Diffstat (limited to 'src/empathy-account-assistant.c')
-rw-r--r-- | src/empathy-account-assistant.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/empathy-account-assistant.c b/src/empathy-account-assistant.c index e92826688..567ddc67b 100644 --- a/src/empathy-account-assistant.c +++ b/src/empathy-account-assistant.c @@ -66,9 +66,25 @@ typedef struct { GtkWidget *second_label; GtkWidget *chooser; EmpathyAccountSettings *settings; + + GtkWindow *parent_window; } EmpathyAccountAssistantPriv; static void +account_assistant_apply_account_cb (GObject *source, + GAsyncResult *result, + gpointer user_data) +{ + GError *error = NULL; + + empathy_account_settings_apply_finish (EMPATHY_ACCOUNT_SETTINGS (source), + result, &error); + + if (error != NULL) + g_print ("error applying %s\n", error->message); +} + +static void account_assistant_apply_account_and_finish (EmpathyAccountAssistant *self) { EmpathyAccountAssistantPriv *priv = GET_PRIV (self); @@ -76,7 +92,8 @@ account_assistant_apply_account_and_finish (EmpathyAccountAssistant *self) if (priv->settings == NULL) return; - empathy_account_settings_apply_async (priv->settings, NULL, NULL); + empathy_account_settings_apply_async (priv->settings, + account_assistant_apply_account_cb, self); } static void |