[cheese/wip/gtkapplication-refactor: 5/7] Do not show thumbnails in fullscreen



commit 2409ca48dc7cd2a65b2221a59b4d7895f410bf12
Author: Hans de Goede <hdegoede redhat com>
Date:   Thu Jun 13 08:05:46 2013 +0000

    Do not show thumbnails in fullscreen
    
    This can happen when toggling the wide mode action while fullscreen mode
    is active. Also remove the unnecessary resize calls.
    
    Signed-off-by: Hans de Goede <hdegoede redhat com>

 src/cheese-window.vala |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index 350f249..14e039a 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -578,9 +578,12 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
         thumbnails_bottom.remove (thumb_nav);
       }
       thumbnails_right.add (thumb_nav);
-      thumbnails_right.show_all ();
-      thumbnails_right.resize_children ();
-      thumbnails_bottom.hide ();
+
+            if (!is_fullscreen)
+            {
+                thumbnails_right.show_all ();
+                thumbnails_bottom.hide ();
+            }
     }
     else
     {
@@ -591,9 +594,12 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
         thumbnails_right.remove (thumb_nav);
       }
       thumbnails_bottom.add (thumb_nav);
-      thumbnails_bottom.show_all ();
-      thumbnails_bottom.resize_children ();
-      thumbnails_right.hide ();
+
+            if (!is_fullscreen)
+            {
+                thumbnails_bottom.show_all ();
+                thumbnails_right.hide ();
+            }
     }
 
     /* handy trick to keep the window to the desired size while not


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