aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-account-settings.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-08-18 23:47:04 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-08-18 23:57:37 +0800
commit266a064e053e0e5795167e47d3c1bb026e303284 (patch)
tree481cc88af57d314a9776eacb8eebf9bfaf5891f8 /libempathy/empathy-account-settings.c
parentac3c718ca603a8261dfd02536e5a75bc60edfb4a (diff)
downloadgsoc2013-empathy-266a064e053e0e5795167e47d3c1bb026e303284.tar
gsoc2013-empathy-266a064e053e0e5795167e47d3c1bb026e303284.tar.gz
gsoc2013-empathy-266a064e053e0e5795167e47d3c1bb026e303284.tar.bz2
gsoc2013-empathy-266a064e053e0e5795167e47d3c1bb026e303284.tar.lz
gsoc2013-empathy-266a064e053e0e5795167e47d3c1bb026e303284.tar.xz
gsoc2013-empathy-266a064e053e0e5795167e47d3c1bb026e303284.tar.zst
gsoc2013-empathy-266a064e053e0e5795167e47d3c1bb026e303284.zip
Get the DisplayName when the account is ready
Diffstat (limited to 'libempathy/empathy-account-settings.c')
-rw-r--r--libempathy/empathy-account-settings.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c
index fbd0724d1..209f017b9 100644
--- a/libempathy/empathy-account-settings.c
+++ b/libempathy/empathy-account-settings.c
@@ -164,18 +164,14 @@ empathy_account_settings_constructed (GObject *object)
{
g_free (priv->cm_name);
g_free (priv->protocol);
- g_free (priv->display_name);
priv->cm_name =
g_strdup (empathy_account_get_connection_manager (priv->account));
priv->protocol =
g_strdup (empathy_account_get_protocol (priv->account));
- priv->display_name =
- g_strdup (empathy_account_get_display_name (priv->account));
}
- g_assert (priv->cm_name != NULL && priv->protocol != NULL
- && priv->display_name != NULL);
+ g_assert (priv->cm_name != NULL && priv->protocol != NULL);
empathy_account_settings_check_readyness (self);
@@ -342,6 +338,13 @@ empathy_account_settings_check_readyness (EmpathyAccountSettings *self)
if (priv->manager == NULL)
return;
+ if (priv->account != NULL)
+ {
+ g_free (priv->display_name);
+ priv->display_name =
+ g_strdup (empathy_account_get_display_name (priv->account));
+ }
+
priv->tp_protocol = tp_connection_manager_get_protocol (priv->manager,
priv->protocol);