[cheese] Use shoot action when handling the webcam button



commit 6ab3c5248d9564ecc383b6c29cb3bcde7fa7c977
Author: Hans de Goede <hdegoede redhat com>
Date:   Mon Jun 17 22:54:57 2013 +0200

    Use shoot action when handling the webcam button
    
    Rather then calling on_shoot directly, call the action, so that if shoot
    is disabled, it also cannot be triggered through the webcam button.
    
    Signed-off-by: Hans de Goede <hdegoede redhat com>

 src/cheese-main.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/cheese-main.vala b/src/cheese-main.vala
index 1b27c90..16ea591 100644
--- a/src/cheese-main.vala
+++ b/src/cheese-main.vala
@@ -313,7 +313,7 @@ public class Cheese.Main : Gtk.Application
         switch (event.keyval)
         {
             case Gdk.Key.WebCam:
-                on_shoot ();
+                activate_action ("shoot", null);
                 return true;
         }
 


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