aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-account-settings.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-07-18 17:03:18 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-07-19 18:39:33 +0800
commitb0d6063cf84f1b75d4d1a72f80d2fbe3c900050b (patch)
tree844e54b34c0a31db86e0c75288d7f1b4568394db /libempathy/empathy-account-settings.c
parent1678eb893efcf00191f3d4c224c2d07c80c093cd (diff)
downloadgsoc2013-empathy-b0d6063cf84f1b75d4d1a72f80d2fbe3c900050b.tar
gsoc2013-empathy-b0d6063cf84f1b75d4d1a72f80d2fbe3c900050b.tar.gz
gsoc2013-empathy-b0d6063cf84f1b75d4d1a72f80d2fbe3c900050b.tar.bz2
gsoc2013-empathy-b0d6063cf84f1b75d4d1a72f80d2fbe3c900050b.tar.lz
gsoc2013-empathy-b0d6063cf84f1b75d4d1a72f80d2fbe3c900050b.tar.xz
gsoc2013-empathy-b0d6063cf84f1b75d4d1a72f80d2fbe3c900050b.tar.zst
gsoc2013-empathy-b0d6063cf84f1b75d4d1a72f80d2fbe3c900050b.zip
add empathy_account_settings_set_storage_provider()
Diffstat (limited to 'libempathy/empathy-account-settings.c')
-rw-r--r--libempathy/empathy-account-settings.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c
index 40cfdb472..12154eb79 100644
--- a/libempathy/empathy-account-settings.c
+++ b/libempathy/empathy-account-settings.c
@@ -76,6 +76,7 @@ struct _EmpathyAccountSettingsPriv
gchar *service;
gchar *display_name;
gchar *icon_name;
+ gchar *storage_provider;
gboolean display_name_overridden;
gboolean ready;
@@ -397,6 +398,7 @@ empathy_account_settings_finalize (GObject *object)
g_free (priv->icon_name);
g_free (priv->password);
g_free (priv->password_original);
+ g_free (priv->storage_provider);
if (priv->required_params != NULL)
{
@@ -1456,6 +1458,12 @@ empathy_account_settings_do_create_account (EmpathyAccountSettings *self)
tp_account_request_set_parameter (account_req, key, value);
}
+ if (priv->storage_provider != NULL)
+ {
+ tp_account_request_set_storage_provider (account_req,
+ priv->storage_provider);
+ }
+
tp_account_request_create_account_async (account_req,
empathy_account_settings_created_cb, self);
}
@@ -1708,3 +1716,13 @@ empathy_account_settings_has_uri_scheme_tel (
return priv->uri_scheme_tel;
}
+
+void
+empathy_account_settings_set_storage_provider (EmpathyAccountSettings *self,
+ const gchar *storage)
+{
+ EmpathyAccountSettingsPriv *priv = GET_PRIV (self);
+
+ g_free (priv->storage_provider);
+ priv->storage_provider = g_strdup (storage);
+}