[cheese/wip/hans-fixes: 28/35] cheese: Fix the need to press F11 twice after starting with -f



commit d63f6a5ce757979f6b5a8d32598d84d3692d7e0b
Author: Hans de Goede <hdegoede redhat com>
Date:   Wed Jun 12 18:03:23 2013 +0200

    cheese: Fix the need to press F11 twice after starting with -f
    
    Change the fullscreen action state, rather then directly calling set_fullscreen
    so that the action state properly reflects the actual fullscreen state,
    avoiding the need to press F11 twice to leave fullscreen after starting
    cheese with -f.
    
    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 e4f2460..032e8cb 100644
--- a/src/cheese-main.vala
+++ b/src/cheese-main.vala
@@ -128,7 +128,7 @@ public class Cheese.Main : Gtk.Application
       if (wide)
         main_window.set_wide_mode (true);
       if (fullscreen)
-        main_window.set_fullscreen (true);
+        change_action_state("fullscreen", true);
 
       /* Tell the main window to save any changes from here on to GSettings */
       main_window.is_command_line_startup = false;


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