[next] telepathy-glib: TpProtocol: convert '_' to '-' when constructing the default icon name
Xavier Claessens
xclaesse at kemper.freedesktop.org
Mon Sep 23 07:58:57 PDT 2013
Module: telepathy-glib
Branch: next
Commit: fc2d5cbc0ec3260d1813132a9d01388eb2302869
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=fc2d5cbc0ec3260d1813132a9d01388eb2302869
Author: Xavier Claessens <xavier.claessens at collabora.co.uk>
Date: Mon Sep 23 10:13:49 2013 -0400
TpProtocol: convert '_' to '-' when constructing the default icon name
---
telepathy-glib/protocol.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/telepathy-glib/protocol.c b/telepathy-glib/protocol.c
index 04d4cff..f3f73c8 100644
--- a/telepathy-glib/protocol.c
+++ b/telepathy-glib/protocol.c
@@ -461,8 +461,8 @@ tp_protocol_constructed (GObject *object)
TP_PROP_PROTOCOL_ICON);
if (tp_str_empty (s))
- self->priv->icon_name = g_strdup_printf ("im-%s",
- self->priv->name);
+ self->priv->icon_name = g_strdelimit (g_strdup_printf ("im-%s",
+ self->priv->name), "_", '-');
else
self->priv->icon_name = g_strdup (s);
More information about the telepathy-commits
mailing list