Blame SOURCES/0032-cheese-Don-t-show-thumbnails-when-toggling-widemode-.patch

ecdf9b
From fa71136c97624724befd0d35cb5a319da30c0afd Mon Sep 17 00:00:00 2001
ecdf9b
From: Hans de Goede <hdegoede@redhat.com>
ecdf9b
Date: Thu, 13 Jun 2013 10:05:46 +0200
ecdf9b
Subject: [PATCH 32/35] cheese: Don't show thumbnails when toggling widemode in
ecdf9b
 fullscreen
ecdf9b
ecdf9b
This can be done for example from the app-menu when in fullscreen mode on
ecdf9b
a secondary monitor.
ecdf9b
ecdf9b
Also remove the unnecessary resize calls.
ecdf9b
ecdf9b
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
ecdf9b
---
ecdf9b
 src/cheese-window.vala | 16 ++++++++++------
ecdf9b
 1 file changed, 10 insertions(+), 6 deletions(-)
ecdf9b
ecdf9b
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
ecdf9b
index c75c5f0..25d9506 100644
ecdf9b
--- a/src/cheese-window.vala
ecdf9b
+++ b/src/cheese-window.vala
ecdf9b
@@ -739,9 +739,11 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
ecdf9b
         thumbnails_bottom.remove (thumb_nav);
ecdf9b
       }
ecdf9b
       thumbnails_right.add (thumb_nav);
ecdf9b
-      thumbnails_right.show_all ();
ecdf9b
-      thumbnails_right.resize_children ();
ecdf9b
-      thumbnails_bottom.hide ();
ecdf9b
+      if (!is_fullscreen)
ecdf9b
+      {
ecdf9b
+        thumbnails_right.show_all ();
ecdf9b
+        thumbnails_bottom.hide ();
ecdf9b
+      }
ecdf9b
     }
ecdf9b
     else
ecdf9b
     {
ecdf9b
@@ -752,9 +754,11 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
ecdf9b
         thumbnails_right.remove (thumb_nav);
ecdf9b
       }
ecdf9b
       thumbnails_bottom.add (thumb_nav);
ecdf9b
-      thumbnails_bottom.show_all ();
ecdf9b
-      thumbnails_bottom.resize_children ();
ecdf9b
-      thumbnails_right.hide ();
ecdf9b
+      if (!is_fullscreen)
ecdf9b
+      {
ecdf9b
+        thumbnails_bottom.show_all ();
ecdf9b
+        thumbnails_right.hide ();
ecdf9b
+      }
ecdf9b
     }
ecdf9b
 
ecdf9b
     /* handy trick to keep the window to the desired size while not
ecdf9b
-- 
ecdf9b
1.8.2.1
ecdf9b