From: Zeeshan Ali (Khattak) Date: Wed, 24 Jun 2009 15:39:25 +0000 (+0300) Subject: ui: keep and save the configuration in the end X-Git-Tag: RYGEL_0_4~234 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5097094639ac24c11bb9b165cb38400e55fc982a;p=profile%2Fivi%2Frygel.git ui: keep and save the configuration in the end --- 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 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 (); - 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) {