[rhythmbox] mediaserver2: add a default DisplayName for the root container
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] mediaserver2: add a default DisplayName for the root container
- Date: Tue, 31 Aug 2010 12:54:44 +0000 (UTC)
commit 6d5b8868ec26fba9dff886ba470773bee93cdda1
Author: Jonathan Matthew <jonathan d14n org>
Date: Tue Aug 31 17:54:09 2010 +1000
mediaserver2: add a default DisplayName for the root container
.../rb-dbus-media-server-plugin.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/dbus-media-server/rb-dbus-media-server-plugin.c b/plugins/dbus-media-server/rb-dbus-media-server-plugin.c
index 17f60dc..867547d 100644
--- a/plugins/dbus-media-server/rb-dbus-media-server-plugin.c
+++ b/plugins/dbus-media-server/rb-dbus-media-server-plugin.c
@@ -887,6 +887,9 @@ get_root_property (GDBusConnection *connection,
return g_variant_new_string (object_path);
} else if (g_strcmp0 (property_name, "DisplayName") == 0) {
char *share_name = eel_gconf_get_string (CONF_DAAP_SHARE_NAME);
+ if (share_name == NULL || share_name[0] == '\0') {
+ share_name = g_strdup ("@REALNAME@'s Rhythmbox on @HOSTNAME@");
+ }
v = g_variant_new_string (share_name);
g_free (share_name);
return v;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]