[rygel/config] Save the boolean options as well.



commit 99fb8b0cae998a57c1a82278d56aed2de95341ab
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Apr 22 16:06:12 2009 +0300

    Save the boolean options as well.
---
 src/ui/rygel-preferences.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/ui/rygel-preferences.vala b/src/ui/rygel-preferences.vala
index 7740cf4..a5ed4ba 100644
--- a/src/ui/rygel-preferences.vala
+++ b/src/ui/rygel-preferences.vala
@@ -142,6 +142,11 @@ public class Rygel.Preferences : Dialog {
                         var text = ((Entry) widget).get_text ();
 
                         this.config_editor.set_string ("general", name, text);
+                } else if (widget is CheckButton) {
+                        var name = widget.get_name ();
+                        var active = ((CheckButton) widget).get_active ();
+
+                        this.config_editor.set_bool ("general", name, active);
                 }
             }
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]