[empathy/gnome-2-28] 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/gnome-2-28] Use the protocol display name for new account names
- Date: Wed, 14 Oct 2009 12:36:03 +0000 (UTC)
commit 254471c433b9c476d33959572667e22691ad6ede
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 26e9aab..fd3aa2b 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"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]