[rygel] Shorter alias of @HOSTNAME@ for config UI: %h
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel] Shorter alias of @HOSTNAME@ for config UI: %h
- Date: Mon, 11 May 2009 18:34:54 -0400 (EDT)
commit adfdfced9e4df902c309b6acbe2f7a288dec3654
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon May 11 17:34:57 2009 +0300
Shorter alias of @HOSTNAME@ for config UI: %h
---
src/ui/rygel-plugin-pref-section.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/ui/rygel-plugin-pref-section.vala b/src/ui/rygel-plugin-pref-section.vala
index 720acbb..27451d1 100644
--- a/src/ui/rygel-plugin-pref-section.vala
+++ b/src/ui/rygel-plugin-pref-section.vala
@@ -45,6 +45,7 @@ public class Rygel.PluginPrefSection : PreferencesSection {
var title = config.get_title (name, name).replace ("@REALNAME@", "%n");
title = title.replace ("@USERNAME@", "%u");
+ title = title.replace ("@HOSTNAME@", "%h");
this.title_entry.set_text (title);
this.enabled_check.toggled += this.on_enabled_check_toggled;
@@ -57,6 +58,7 @@ public class Rygel.PluginPrefSection : PreferencesSection {
var title = this.title_entry.get_text ().replace ("%n", "@REALNAME@");
title = title.replace ("%u", "@USERNAME@");
+ title = title.replace ("%h", "@HOSTNAME@");
this.config.set_string (this.name, Configuration.TITLE_KEY, title);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]