[rygel] ui: keep and save the configuration in the end
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel] ui: keep and save the configuration in the end
- Date: Sat, 4 Jul 2009 15:14:47 +0000 (UTC)
commit 5097094639ac24c11bb9b165cb38400e55fc982a
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Jun 24 18:39:25 2009 +0300
ui: keep and save the configuration in the end
src/ui/rygel-preferences-dialog.vala | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/src/ui/rygel-preferences-dialog.vala b/src/ui/rygel-preferences-dialog.vala
index ddeba90..792eecf 100644
--- a/src/ui/rygel-preferences-dialog.vala
+++ b/src/ui/rygel-preferences-dialog.vala
@@ -28,12 +28,13 @@ public class Rygel.PreferencesDialog : GLib.Object {
const string UI_FILE = BuildConfig.DATA_DIR + "/rygel-preferences.ui";
const string DIALOG = "preferences-dialog";
+ UserConfig config;
Builder builder;
Dialog dialog;
ArrayList<PreferencesSection> sections;
public PreferencesDialog () throws Error {
- var config = UserConfig.get_default ();
+ this.config = UserConfig.get_default ();
this.builder = new Builder ();
@@ -43,11 +44,10 @@ public class Rygel.PreferencesDialog : GLib.Object {
assert (this.dialog != null);
this.sections = new ArrayList<PreferencesSection> ();
- this.sections.add (new GeneralPrefSection (this.builder, config));
- this.sections.add (new TrackerPrefSection (this.builder,
- config));
+ this.sections.add (new GeneralPrefSection (this.builder, this.config));
+ this.sections.add (new TrackerPrefSection (this.builder, this.config));
this.sections.add (new MediaExportPrefSection (this.builder,
- config));
+ this.config));
}
public void run () {
@@ -56,6 +56,8 @@ public class Rygel.PreferencesDialog : GLib.Object {
foreach (var section in this.sections) {
section.save ();
}
+
+ this.config.save ();
}
public static int main (string[] args) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]