From 6328e566344f1f6bd83bc01f4951d2c1fd680f6e Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 20 Jan 2010 16:03:38 +0000 Subject: set the salut-account-created gconf key once the account has been created --- src/empathy-account-assistant.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/empathy-account-assistant.c b/src/empathy-account-assistant.c index 3e565512f..67167f39e 100644 --- a/src/empathy-account-assistant.c +++ b/src/empathy-account-assistant.c @@ -35,6 +35,7 @@ #include #include #include +#include #define DEBUG_FLAG EMPATHY_DEBUG_ACCOUNT #include @@ -235,9 +236,10 @@ account_assistant_account_enabled_cb (GObject *source, GError *error = NULL; EmpathyAccountAssistant *self = user_data; EmpathyAccountAssistantPriv *priv = GET_PRIV (self); + const gchar *protocol; + TpAccount *account = TP_ACCOUNT (source); - tp_account_set_enabled_finish (TP_ACCOUNT (source), - result, &error); + tp_account_set_enabled_finish (account, result, &error); if (error) { @@ -245,6 +247,16 @@ account_assistant_account_enabled_cb (GObject *source, g_error_free (error); } + protocol = tp_account_get_protocol (account); + if (!tp_strdiff (protocol, "local-xmpp")) + { + DEBUG ("Salut account has been created; update gconf key"); + + empathy_conf_set_bool (empathy_conf_get (), + EMPATHY_PREFS_SALUT_ACCOUNT_CREATED, + TRUE); + } + if (priv->create_enter_resp == RESPONSE_CREATE_STOP) g_signal_emit_by_name (self, "close"); else -- cgit v1.2.3