[telepathy-account-widgets/next] 'local-xmpp' protocol has been renamed 'local_xmpp'



commit 360744a79cc03a22b489462e362b3805abd3539c
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Fri Oct 25 14:36:14 2013 +0200

    'local-xmpp' protocol has been renamed 'local_xmpp'

 tp-account-widgets/tpaw-account-widget.c |    2 +-
 tp-account-widgets/tpaw-protocol.c       |    2 +-
 tp-account-widgets/tpaw-utils.c          |    5 ++++-
 3 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/tp-account-widgets/tpaw-account-widget.c b/tp-account-widgets/tpaw-account-widget.c
index e15a3d1..a3a18ea 100644
--- a/tp-account-widgets/tpaw-account-widget.c
+++ b/tp-account-widgets/tpaw-account-widget.c
@@ -1805,7 +1805,7 @@ do_constructed (GObject *obj)
     const char *file;
     GtkWidget * (*func)(TpawAccountWidget *self, const gchar *filename);
   } widgets [] = {
-    { "salut", "local-xmpp", TPAW_ACCOUNT_WIDGETS_RESOURCES_PREFIX "/tpaw-account-widget-local-xmpp.ui",
+    { "salut", "local_xmpp", TPAW_ACCOUNT_WIDGETS_RESOURCES_PREFIX "/tpaw-account-widget-local-xmpp.ui",
         account_widget_build_salut },
     WIDGET (gabble, jabber),
     WIDGET (haze, msn),
diff --git a/tp-account-widgets/tpaw-protocol.c b/tp-account-widgets/tpaw-protocol.c
index 72c579f..20a08ac 100644
--- a/tp-account-widgets/tpaw-protocol.c
+++ b/tp-account-widgets/tpaw-protocol.c
@@ -422,7 +422,7 @@ sort_protocol_value (const gchar *protocol_name)
   guint i;
   const gchar *names[] = {
     "jabber",
-    "local-xmpp",
+    "local_xmpp",
     "gtalk",
     NULL
   };
diff --git a/tp-account-widgets/tpaw-utils.c b/tp-account-widgets/tpaw-utils.c
index d83f396..0724d54 100644
--- a/tp-account-widgets/tpaw-utils.c
+++ b/tp-account-widgets/tpaw-utils.c
@@ -100,6 +100,9 @@ tpaw_protocol_icon_name (const gchar *protocol)
     protocol = "sip";
   else if (!tp_strdiff (protocol, "sms"))
     return g_strdup ("phone");
+  else if (!tp_strdiff (protocol, "local_xmpp"))
+    /* Icon names can't have '_' in their name */
+    return g_strdup ("im-local-xmpp");
 
   return g_strdup_printf ("im-%s", protocol);
 }
@@ -115,7 +118,7 @@ tpaw_protocol_name_to_display_name (const gchar *proto_name)
   } names[] = {
     { "jabber", "Jabber", FALSE },
     { "msn", "Windows Live (MSN)", FALSE, },
-    { "local-xmpp", N_("People Nearby"), TRUE },
+    { "local_xmpp", N_("People Nearby"), TRUE },
     { "irc", "IRC", FALSE },
     { "icq", "ICQ", FALSE },
     { "aim", "AIM", FALSE },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]