aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-10-14 04:34:59 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-10-14 09:22:34 +0800
commit254471c433b9c476d33959572667e22691ad6ede (patch)
tree41ed0916ec19c6d76c1016348f26c42eacfb5918
parented5e2d5221c6f9fd7ad0dbe31ab89304af57b222 (diff)
downloadgsoc2013-empathy-254471c433b9c476d33959572667e22691ad6ede.tar
gsoc2013-empathy-254471c433b9c476d33959572667e22691ad6ede.tar.gz
gsoc2013-empathy-254471c433b9c476d33959572667e22691ad6ede.tar.bz2
gsoc2013-empathy-254471c433b9c476d33959572667e22691ad6ede.tar.lz
gsoc2013-empathy-254471c433b9c476d33959572667e22691ad6ede.tar.xz
gsoc2013-empathy-254471c433b9c476d33959572667e22691ad6ede.tar.zst
gsoc2013-empathy-254471c433b9c476d33959572667e22691ad6ede.zip
Use the protocol display name for new account names
As the default display name for new accounts use the pretty human-readable version instead of the telepathy protocol names Fixes #598355
-rw-r--r--src/empathy-accounts-dialog.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 26e9aab42..fd3aa2b96 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -215,12 +215,15 @@ static gchar *
get_default_display_name (EmpathyAccountSettings *settings)
{
const gchar *login_id;
- const gchar *protocol;
+ const gchar *protocol, *p;
gchar *default_display_name;
login_id = empathy_account_settings_get_string (settings, "account");
protocol = empathy_account_settings_get_protocol (settings);
+ if ((p = empathy_protocol_name_to_display_name (protocol)) != NULL)
+ protocol = p;
+
if (login_id != NULL)
{
if (!tp_strdiff (protocol, "irc"))