65a8849
From cfc2a636dca6e859e0c6ae8ea4a5fd53238dc9b9 Mon Sep 17 00:00:00 2001
65a8849
From: Hans de Goede <hdegoede@redhat.com>
65a8849
Date: Wed, 12 Jun 2013 18:03:23 +0200
65a8849
Subject: [PATCH 28/35] cheese: Fix the need to press F11 twice after starting
65a8849
 with -f
65a8849
65a8849
Change the fullscreen action state, rather then directly calling set_fullscreen
65a8849
so that the action state properly reflects the actual fullscreen state,
65a8849
avoiding the need to press F11 twice to leave fullscreen after starting
65a8849
cheese with -f.
65a8849
65a8849
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
65a8849
---
65a8849
 src/cheese-main.vala | 2 +-
65a8849
 1 file changed, 1 insertion(+), 1 deletion(-)
65a8849
65a8849
diff --git a/src/cheese-main.vala b/src/cheese-main.vala
65a8849
index e4f2460..032e8cb 100644
65a8849
--- a/src/cheese-main.vala
65a8849
+++ b/src/cheese-main.vala
65a8849
@@ -128,7 +128,7 @@ public class Cheese.Main : Gtk.Application
65a8849
       if (wide)
65a8849
         main_window.set_wide_mode (true);
65a8849
       if (fullscreen)
65a8849
-        main_window.set_fullscreen (true);
65a8849
+        change_action_state("fullscreen", true);
65a8849
 
65a8849
       /* Tell the main window to save any changes from here on to GSettings */
65a8849
       main_window.is_command_line_startup = false;
65a8849
-- 
65a8849
1.8.2.1
65a8849