[rygel] Configuration.get_title takes default value arg
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel] Configuration.get_title takes default value arg
- Date: Mon, 11 May 2009 10:05:58 -0400 (EDT)
commit dd9b9771e0d503f7fc94e723318f22923a433a57
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri May 8 18:17:00 2009 +0300
Configuration.get_title takes default value arg
Instead of assuming the name of the section to be the default value for
title, it now expects an extra argument for that.
---
src/rygel/rygel-configuration.vala | 4 ++--
src/ui/rygel-plugin-pref-section.vala | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/rygel/rygel-configuration.vala b/src/rygel/rygel-configuration.vala
index a0213fa..7f20fce 100644
--- a/src/rygel/rygel-configuration.vala
+++ b/src/rygel/rygel-configuration.vala
@@ -112,8 +112,8 @@ public class Rygel.Configuration {
return this.get_bool (section, ENABLED_KEY, true);
}
- public string get_title (string section) {
- return this.get_string (section, TITLE_KEY, section);
+ public string get_title (string section, string default_title) {
+ return this.get_string (section, TITLE_KEY, default_title);
}
public string get_udn (string section) {
diff --git a/src/ui/rygel-plugin-pref-section.vala b/src/ui/rygel-plugin-pref-section.vala
index 5a37329..77cbd00 100644
--- a/src/ui/rygel-plugin-pref-section.vala
+++ b/src/ui/rygel-plugin-pref-section.vala
@@ -42,7 +42,7 @@ public class Rygel.PluginPrefSection : PreferencesSection {
assert (this.title_entry != null);
this.enabled_check.active = config.get_enabled (name);
- this.title_entry.set_text (config.get_title (name));
+ this.title_entry.set_text (config.get_title (name, name));
this.enabled_check.toggled += this.on_enabled_check_toggled;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]