[rygel/config] PreferencesDialog doesn't need to keep config_editor.



commit 39f2f54f92558f2ec39c42c081fe5d108de03488
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Apr 22 17:54:33 2009 +0300

    PreferencesDialog doesn't need to keep config_editor.
---
 src/ui/rygel-preferences-dialog.vala |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/ui/rygel-preferences-dialog.vala b/src/ui/rygel-preferences-dialog.vala
index fd4a2bd..f835214 100644
--- a/src/ui/rygel-preferences-dialog.vala
+++ b/src/ui/rygel-preferences-dialog.vala
@@ -23,14 +23,12 @@
 using Gtk;
 
 public class Rygel.PreferencesDialog : Dialog {
-    ConfigEditor config_editor;
-
     public PreferencesDialog () {
         this.title = "Rygel Preferences";
 
-        this.config_editor = new ConfigEditor ();
+        var config_editor = new ConfigEditor ();
 
-        this.vbox.add (new PreferencesVBox (this.config_editor));
+        this.vbox.add (new PreferencesVBox (config_editor));
 
         this.add_button (STOCK_OK, ResponseType.ACCEPT);
         this.add_button (STOCK_APPLY, ResponseType.APPLY);



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