Save the boolean options as well.
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Wed, 22 Apr 2009 13:06:12 +0000 (16:06 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Wed, 22 Apr 2009 13:06:12 +0000 (16:06 +0300)
src/ui/rygel-preferences.vala

index 7740cf4..a5ed4ba 100644 (file)
@@ -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);
                 }
             }
         }