[shotwell] Hide toolbar when switching away from fullscreen
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Hide toolbar when switching away from fullscreen
- Date: Sat, 21 May 2016 19:20:42 +0000 (UTC)
commit 61941ad671534d15d5474460a8cd13cdae6b48c2
Author: Jens Georg <mail jensge org>
Date: Sat May 21 21:19:40 2016 +0200
Hide toolbar when switching away from fullscreen
Don't have hit hover around over other windows
Signed-off-by: Jens Georg <mail jensge org>
https://bugzilla.gnome.org/show_bug.cgi?id=756126
src/AppWindow.vala | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/AppWindow.vala b/src/AppWindow.vala
index 743c72e..3206006 100644
--- a/src/AppWindow.vala
+++ b/src/AppWindow.vala
@@ -81,6 +81,16 @@ public class FullscreenWindow : PageWindow {
toolbar_window.add(toolbar);
toolbar_window.realize.connect(on_toolbar_realized);
+
+ this.focus_in_event.connect(() => {
+ toolbar_window.show();
+ return false;
+ });
+
+ this.focus_out_event.connect (() => {
+ toolbar_window.hide();
+ return false;
+ });
add(page);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]