]> git.0d.be Git - empathy.git/commitdiff
Use the protocol display name for new account names
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Tue, 13 Oct 2009 20:34:59 +0000 (16:34 -0400)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>
Wed, 14 Oct 2009 13:00:08 +0000 (09:00 -0400)
As the default display name for new accounts use the pretty human-readable
version instead of the telepathy protocol names

Fixes #598355

src/empathy-accounts-dialog.c

index 77bf3741430e8cd96ca0367b3c4f357d8543cb18..4e120e1d4f3f035aef29881e6b8aaf7f8a90a70e 100644 (file)
@@ -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"))