[empathy] Improve default display name for Facebook accounts
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] Improve default display name for Facebook accounts
- Date: Thu, 11 Feb 2010 18:07:44 +0000 (UTC)
commit 9be6f0a2e28b9719bceafbd95ed49d27363b33c0
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Feb 11 15:27:36 2010 +0000
Improve default display name for Facebook accounts
libempathy-gtk/empathy-account-widget.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index 489a04c..0469f62 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -1956,6 +1956,14 @@ empathy_account_widget_get_default_display_name (EmpathyAccountWidget *self)
default_display_name = g_strdup_printf (_("%1$s on %2$s"),
login_id, server);
}
+ else if (account_widget_is_facebook (self))
+ {
+ gchar *tmp;
+
+ tmp = remove_facebook_suffix (login_id);
+ default_display_name = g_strdup_printf ("Facebook (%s)", tmp);
+ g_free (tmp);
+ }
else
{
default_display_name = g_strdup (login_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]