[cheese] Disable the shoot action if the effects are shown



commit bfaafd4b5af9800e6c7425d83aa3b26283659756
Author: David King <amigadave amigadave com>
Date:   Tue May 14 18:14:27 2013 +0100

    Disable the shoot action if the effects are shown
    
    Fixes bug 700317.

 src/cheese-main.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/cheese-main.vala b/src/cheese-main.vala
index ac5ba6f..177b172 100644
--- a/src/cheese-main.vala
+++ b/src/cheese-main.vala
@@ -412,6 +412,11 @@ public class Cheese.Main : Gtk.Application
 
         var state = value.get_boolean ();
 
+        var shoot = this.lookup_action ("shoot") as SimpleAction;
+
+        // The effects selector and shooting are mutually exclusive.
+        shoot.set_enabled (!state);
+
         main_window.set_effects (state);
 
         action.set_state (value);


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