diff options
author | Hans de Goede <hdegoede@redhat.com> | 2013-06-13 08:05:46 +0000 |
---|---|---|
committer | David King <amigadave@amigadave.com> | 2013-06-30 10:11:09 +0100 |
commit | e543a8dec67229370820b1dccca1279e091cdf60 (patch) | |
tree | 369b3c4045b06d7097ee656535c590037dddb12d | |
parent | 5e812f1576182cfe1d06e43fe6bce8a39fdd92d6 (diff) | |
download | cheese-e543a8dec67229370820b1dccca1279e091cdf60.tar.gz |
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>
-rw-r--r-- | 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 350f2493..14e039a1 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 |