[cheese/wip-cancel: 4/5] Fixed bug where you can start multiple countdowns in photo mode that run together and mess up the co



commit ca681fe0ffcfa98343d186d82212ce183179e961
Author: Yuvaraj Pandian T <yuvipanda gmail com>
Date:   Wed Aug 11 14:46:14 2010 +0530

    Fixed bug where you can start multiple countdowns in photo mode that run
    together and mess up the counter

 src/cheese-window.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index 227e233..9a1e3a8 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -591,12 +591,16 @@ public class Cheese.MainWindow : Gtk.Window
                                  Canberra.PROP_EVENT_DESCRIPTION, _("Shutter sound"),
                                  null);
     this.camera.take_photo (file_name);
+	if (current_mode == MediaMode.PHOTO)
+		take_photo_action.sensitive = true;
   }
 
   public void take_photo ()
   {
     if (conf.gconf_prop_countdown)
     {
+		if (current_mode == MediaMode.PHOTO)
+			take_photo_action.sensitive = false;
       Countdown cd = new Countdown (this.countdown_layer);
       cd.start_countdown (finish_countdown_callback);
     }



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