aboutsummaryrefslogtreecommitdiffstats
path: root/src
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 21:00:08 +0800
commitb3cc80d48c1bb913de1907e1664a0f720c8e900a (patch)
treed26103da74fe4939cf5abc2be93120facdf9b6d7 /src
parent03f2b62039ae8df84b138185a32bfdf0cc857581 (diff)
downloadgsoc2013-empathy-b3cc80d48c1bb913de1907e1664a0f720c8e900a.tar
gsoc2013-empathy-b3cc80d48c1bb913de1907e1664a0f720c8e900a.tar.gz
gsoc2013-empathy-b3cc80d48c1bb913de1907e1664a0f720c8e900a.tar.bz2
gsoc2013-empathy-b3cc80d48c1bb913de1907e1664a0f720c8e900a.tar.lz
gsoc2013-empathy-b3cc80d48c1bb913de1907e1664a0f720c8e900a.tar.xz
gsoc2013-empathy-b3cc80d48c1bb913de1907e1664a0f720c8e900a.tar.zst
gsoc2013-empathy-b3cc80d48c1bb913de1907e1664a0f720c8e900a.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
Diffstat (limited to 'src')
-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 77bf37414..4e120e1d4 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -216,12 +216,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"))