Add magic keyword for hostname substitution
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Mon, 11 May 2009 14:33:04 +0000 (17:33 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Mon, 11 May 2009 15:19:39 +0000 (18:19 +0300)
Add magic keyword for hostname substitution in the plugin title:
@HOSTNAME@

src/rygel/rygel-media-server-factory.vala

index 0c30c58..7f40a9d 100644 (file)
@@ -150,6 +150,7 @@ public class Rygel.MediaServerFactory {
         var title = this.config.get_title (plugin_name, plugin_title);
         title = title.replace ("@REALNAME@", Environment.get_real_name ());
         title = title.replace ("@USERNAME@", Environment.get_user_name ());
+        title = title.replace ("@HOSTNAME@", Environment.get_host_name ());
 
         element->set_content (title);