diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2009-08-25 17:50:26 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-25 18:55:39 +0800 |
commit | 073dc5b0186057f6f30818c3fc50d2070b1743a1 (patch) | |
tree | cdc27291f39b5a10dce4fa5044969f06250fcf97 /libempathy-gtk | |
parent | 13d33b5782508968119610517af99d8312a39f45 (diff) | |
download | gsoc2013-empathy-073dc5b0186057f6f30818c3fc50d2070b1743a1.tar gsoc2013-empathy-073dc5b0186057f6f30818c3fc50d2070b1743a1.tar.gz gsoc2013-empathy-073dc5b0186057f6f30818c3fc50d2070b1743a1.tar.bz2 gsoc2013-empathy-073dc5b0186057f6f30818c3fc50d2070b1743a1.tar.lz gsoc2013-empathy-073dc5b0186057f6f30818c3fc50d2070b1743a1.tar.xz gsoc2013-empathy-073dc5b0186057f6f30818c3fc50d2070b1743a1.tar.zst gsoc2013-empathy-073dc5b0186057f6f30818c3fc50d2070b1743a1.zip |
Make empathy_protocol_name_to_display_name public
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-protocol-chooser.c | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/libempathy-gtk/empathy-protocol-chooser.c b/libempathy-gtk/empathy-protocol-chooser.c index c9dbb4027..1b29f7db8 100644 --- a/libempathy-gtk/empathy-protocol-chooser.c +++ b/libempathy-gtk/empathy-protocol-chooser.c @@ -128,35 +128,6 @@ protocol_chooser_sort_func (GtkTreeModel *model, return cmp; } -static const char * -protocol_chooser_proto_name_to_display_name (const gchar *proto_name) -{ - int i; - static struct { - const gchar *proto; - const gchar *display; - } names[] = { - { "jabber", "Jabber" }, - { "msn", "MSN" }, - { "local-xmpp", N_("People Nearby") }, - { "irc", "IRC" }, - { "icq", "ICQ" }, - { "aim", "AIM" }, - { "yahoo", "Yahoo!" }, - { "groupwise", "GroupWise" }, - { "sip", "SIP" }, - { NULL, NULL } - }; - - for (i = 0; names[i].proto != NULL; i++) - { - if (!tp_strdiff (proto_name, names[i].proto)) - return names[i].display; - } - - return NULL; -} - static void protocol_choosers_add_cm (EmpathyProtocolChooser *chooser, TpConnectionManager *cm) @@ -225,7 +196,7 @@ protocol_choosers_add_cm (EmpathyProtocolChooser *chooser, g_strdup (proto->name), g_strdup (cm->name)); icon_name = empathy_protocol_icon_name (proto->name); - display_name = protocol_chooser_proto_name_to_display_name (proto->name); + display_name = empathy_protocol_name_to_display_name (proto->name); if (display_name == NULL) display_name = proto->name; |