[empathy/mc5] Report back errors (right now just on stdout)
- From: Sjoerd Simons <sjoerds src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy/mc5] Report back errors (right now just on stdout)
- Date: Sat, 22 Aug 2009 18:52:28 +0000 (UTC)
commit ce3eb60be50a9571bde936eccecc800ee54080f1
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Aug 5 16:39:20 2009 +0200
Report back errors (right now just on stdout)
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 e928266..567ddc6 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]