[empathy] Use the protocol display name for new account names
- From: Sjoerd Simons <sjoerds src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] Use the protocol display name for new account names
- Date: Wed, 14 Oct 2009 13:00:45 +0000 (UTC)
commit b3cc80d48c1bb913de1907e1664a0f720c8e900a
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date: Tue Oct 13 16:34:59 2009 -0400
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
src/empathy-accounts-dialog.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 77bf374..4e120e1 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"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]