[rygel/config] Also save the integers.



commit b012d0d9e6edd8c18eedc84f6f38493608ea7bf3
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Apr 22 16:39:32 2009 +0300

    Also save the integers.
---
 src/ui/rygel-preferences.vala |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/ui/rygel-preferences.vala b/src/ui/rygel-preferences.vala
index a5ed4ba..7b3a98e 100644
--- a/src/ui/rygel-preferences.vala
+++ b/src/ui/rygel-preferences.vala
@@ -137,7 +137,14 @@ public class Rygel.Preferences : Dialog {
             var hbox = (HBox) child;
 
             foreach (var widget in hbox.get_children ()) {
-                if (widget is Entry) {
+                if (widget is SpinButton) {
+                        var name = widget.get_name ();
+                        var number = ((SpinButton) widget).get_value ();
+
+                        this.config_editor.set_int ("general",
+                                                    name,
+                                                    (int) number);
+                } else if (widget is Entry) {
                         var name = widget.get_name ();
                         var text = ((Entry) widget).get_text ();
 



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