[empathy] set the salut-account-created gconf key once the account has been created
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] set the salut-account-created gconf key once the account has been created
- Date: Mon, 25 Jan 2010 14:14:23 +0000 (UTC)
commit 6328e566344f1f6bd83bc01f4951d2c1fd680f6e
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Jan 20 16:03:38 2010 +0000
set the salut-account-created gconf key once the account has been created
src/empathy-account-assistant.c | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/src/empathy-account-assistant.c b/src/empathy-account-assistant.c
index 3e56551..67167f3 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]