[grilo-plugins/0.1.x] upnp: Remove ugly 'UPnP - ' prefix from title
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/0.1.x] upnp: Remove ugly 'UPnP - ' prefix from title
- Date: Mon, 19 Sep 2011 19:25:25 +0000 (UTC)
commit 3cc01632117f982d0d35e6918d4eac09e5b8b208
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Sep 19 22:18:00 2011 +0300
upnp: Remove ugly 'UPnP - ' prefix from title
src/media/upnp/grl-upnp.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/media/upnp/grl-upnp.c b/src/media/upnp/grl-upnp.c
index 1634713..fe463c8 100644
--- a/src/media/upnp/grl-upnp.c
+++ b/src/media/upnp/grl-upnp.c
@@ -49,7 +49,6 @@ GRL_LOG_DOMAIN_STATIC(upnp_log_domain);
#define PLUGIN_ID UPNP_PLUGIN_ID
#define SOURCE_ID_TEMPLATE "grl-upnp-%s"
-#define SOURCE_NAME_TEMPLATE "UPnP - %s"
#define SOURCE_DESC_TEMPLATE "A source for browsing the UPnP server '%s'"
/* --- Other --- */
@@ -193,18 +192,16 @@ grl_upnp_source_new (const gchar *source_id, const gchar *name)
GrlUpnpSource *source;
GRL_DEBUG ("grl_upnp_source_new");
- source_name = g_strdup_printf (SOURCE_NAME_TEMPLATE, name);
source_desc = g_strdup_printf (SOURCE_DESC_TEMPLATE, name);
source = g_object_new (GRL_UPNP_SOURCE_TYPE,
"source-id", source_id,
- "source-name", source_name,
+ "source-name", name,
"source-desc", source_desc,
NULL);
source->priv->upnp_name = g_strdup (name);
- g_free (source_name);
g_free (source_desc);
return source;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]