[gnome-documents] evinceview: fix double menus in fullscreen mode
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] evinceview: fix double menus in fullscreen mode
- Date: Sat, 1 Apr 2017 20:05:08 +0000 (UTC)
commit 46881d089752d759897b215b59afb74a92b004bd
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Apr 1 13:02:24 2017 -0700
evinceview: fix double menus in fullscreen mode
Don't mess with the toolbar sensitivity; hiding it is enough. Also,
make sure the menu is closed when we enter or leave fullscreen.
src/evinceview.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/evinceview.js b/src/evinceview.js
index ffbb00e..b440511 100644
--- a/src/evinceview.js
+++ b/src/evinceview.js
@@ -491,7 +491,7 @@ const EvinceView = new Lang.Class({
let fullscreen = action.state.get_boolean();
this.toolbar.visible = !fullscreen;
- this.toolbar.sensitive = !fullscreen;
+ this.getAction('gear-menu').change_state(GLib.Variant.new('b', false));
if (fullscreen) {
// create fullscreen toolbar (hidden by default)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]