aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-account-assistant.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-01-21 00:03:38 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-01-25 22:13:39 +0800
commit6328e566344f1f6bd83bc01f4951d2c1fd680f6e (patch)
tree30070b971ca6ac090c643bf2e050d907237a2e1f /src/empathy-account-assistant.c
parente18077ddd872c65bcca5f755fce4abceb0eebfab (diff)
downloadgsoc2013-empathy-6328e566344f1f6bd83bc01f4951d2c1fd680f6e.tar
gsoc2013-empathy-6328e566344f1f6bd83bc01f4951d2c1fd680f6e.tar.gz
gsoc2013-empathy-6328e566344f1f6bd83bc01f4951d2c1fd680f6e.tar.bz2
gsoc2013-empathy-6328e566344f1f6bd83bc01f4951d2c1fd680f6e.tar.lz
gsoc2013-empathy-6328e566344f1f6bd83bc01f4951d2c1fd680f6e.tar.xz
gsoc2013-empathy-6328e566344f1f6bd83bc01f4951d2c1fd680f6e.tar.zst
gsoc2013-empathy-6328e566344f1f6bd83bc01f4951d2c1fd680f6e.zip
set the salut-account-created gconf key once the account has been created
Diffstat (limited to 'src/empathy-account-assistant.c')
-rw-r--r--src/empathy-account-assistant.c16
1 files 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 <libempathy-gtk/empathy-account-widget.h>
#include <libempathy-gtk/empathy-protocol-chooser.h>
#include <libempathy-gtk/empathy-ui-utils.h>
+#include <libempathy-gtk/empathy-conf.h>
#define DEBUG_FLAG EMPATHY_DEBUG_ACCOUNT
#include <libempathy/empathy-debug.h>
@@ -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