[cheese] Moved preferences window initialization to first-use, rather than startup



commit dffd2dddf1cedff0e24d04a3817a1fea3a201578
Author: Yuvi Panda <yuvipanda gmail com>
Date:   Wed Jul 28 14:03:59 2010 +0530

    Moved preferences window initialization to first-use, rather than startup

 src/cheese-window.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index 5a45036..1c175a0 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -108,6 +108,8 @@ public class Cheese.MainWindow : Gtk.Window
   [CCode (instance_pos = -1)]
   internal void on_preferences_dialog (Gtk.Action action)
   {
+    if (preferences_dialog == null)
+      preferences_dialog = new Cheese.PreferencesDialog (camera, conf);
     preferences_dialog.show ();
   }
 
@@ -941,7 +943,6 @@ public class Cheese.MainWindow : Gtk.Window
 
     set_mode (MediaMode.PHOTO);
     setup_effects_selector ();
-    preferences_dialog = new Cheese.PreferencesDialog (camera, conf);
     camera.play ();
   }
 }



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