aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-02-11 23:27:36 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-02-12 00:01:38 +0800
commit9be6f0a2e28b9719bceafbd95ed49d27363b33c0 (patch)
treeec2631f2223238221e52a0604b04a5ad2ed243dd /libempathy-gtk
parent79718737e209ee469d5b0ea9b7cabf5e6d5adb87 (diff)
downloadgsoc2013-empathy-9be6f0a2e28b9719bceafbd95ed49d27363b33c0.tar
gsoc2013-empathy-9be6f0a2e28b9719bceafbd95ed49d27363b33c0.tar.gz
gsoc2013-empathy-9be6f0a2e28b9719bceafbd95ed49d27363b33c0.tar.bz2
gsoc2013-empathy-9be6f0a2e28b9719bceafbd95ed49d27363b33c0.tar.lz
gsoc2013-empathy-9be6f0a2e28b9719bceafbd95ed49d27363b33c0.tar.xz
gsoc2013-empathy-9be6f0a2e28b9719bceafbd95ed49d27363b33c0.tar.zst
gsoc2013-empathy-9be6f0a2e28b9719bceafbd95ed49d27363b33c0.zip
Improve default display name for Facebook accounts
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-account-widget.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index 489a04c00..0469f6205 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);