[rygel] Keyword substitution for ExternalItem title



commit e6e8be1c7dc4ebf854589abf1aeeed23684a0bb0
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon May 11 18:45:29 2009 +0300

    Keyword substitution for ExternalItem title
---
 src/plugins/external/rygel-external-item.vala |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/plugins/external/rygel-external-item.vala b/src/plugins/external/rygel-external-item.vala
index affd60f..71eed84 100644
--- a/src/plugins/external/rygel-external-item.vala
+++ b/src/plugins/external/rygel-external-item.vala
@@ -50,7 +50,12 @@ public class Rygel.ExternalItem : MediaItem {
 
         Value value;
         props.Get (OBJECT_IFACE, "display-name", out value);
-        this.title = value.get_string ();
+        this.title = value.get_string ().replace ("@REALNAME@",
+                                                  Environment.get_real_name ());
+        this.title = this.title.replace ("@USERNAME@",
+                                         Environment.get_user_name ());
+        this.title = this.title.replace ("@HOSTNAME@",
+                                         Environment.get_host_name ());
 
         props.Get (ITEM_IFACE, "type", out value);
         string type = value.get_string ();



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