[rygel/config] Keep the config_editor in the object scope.



commit 47cc31836013dd80037205f3db43ae1cfc26f858
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Apr 22 16:00:44 2009 +0300

    Keep the config_editor in the object scope.
---
 src/ui/rygel-preferences.vala |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/ui/rygel-preferences.vala b/src/ui/rygel-preferences.vala
index 54d93df..55077b6 100644
--- a/src/ui/rygel-preferences.vala
+++ b/src/ui/rygel-preferences.vala
@@ -23,24 +23,26 @@
 using Gtk;
 
 public class Rygel.Preferences : Dialog {
+    ConfigEditor config_editor;
+
     public Preferences () {
         this.title = "Rygel Preferences";
 
-        var config_editor = new Rygel.ConfigEditor ();
+        this.config_editor = new ConfigEditor ();
 
         this.add_string_pref (ConfigReader.IP_KEY,
                               "IP",
-                              config_editor.host_ip,
+                              this.config_editor.host_ip,
                               "The IP to advertise the UPnP MediaServer on");
         this.add_int_pref (ConfigReader.PORT_KEY,
                            "Port",
-                           config_editor.port,
+                           this.config_editor.port,
                            uint16.MIN,
                            uint16.MAX,
                            "The port to advertise the UPnP MediaServer on");
         this.add_boolean_pref (ConfigReader.XBOX_KEY,
                                "XBox support",
-                               config_editor.enable_xbox,
+                               this.config_editor.enable_xbox,
                                "Enable Xbox support");
 
         this.add_button (STOCK_OK, ResponseType.ACCEPT);



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