[cheese/wip/hans-fixes: 32/35] cheese: Don't show thumbnails when toggling widemode in fullscreen
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/wip/hans-fixes: 32/35] cheese: Don't show thumbnails when toggling widemode in fullscreen
- Date: Fri, 14 Jun 2013 22:26:22 +0000 (UTC)
commit 1123eb1a8cbe6d1d65fb55d23af6b84d109df6fd
Author: Hans de Goede <hdegoede redhat com>
Date: Thu Jun 13 10:05:46 2013 +0200
cheese: Don't show thumbnails when toggling widemode in fullscreen
This can be done for example from the app-menu when in fullscreen mode on
a secondary monitor.
Also remove the unnecessary resize calls.
Signed-off-by: Hans de Goede <hdegoede redhat com>
src/cheese-window.vala | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index c75c5f0..25d9506 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -739,9 +739,11 @@ 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
{
@@ -752,9 +754,11 @@ 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]