[gnome-documents] application, preview: Disable the gear menu while a document is loading
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] application, preview: Disable the gear menu while a document is loading
- Date: Fri, 10 Oct 2014 09:22:32 +0000 (UTC)
commit b75e5e224b91df896bf43a229ea11ccd720a1b80
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Oct 7 15:04:58 2014 +0200
application, preview: Disable the gear menu while a document is loading
https://bugzilla.gnome.org/show_bug.cgi?id=720516
src/application.js | 3 +--
src/preview.js | 3 ++-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index a25fc1f..962f67c 100644
--- a/src/application.js
+++ b/src/application.js
@@ -467,8 +467,7 @@ const Application = new Lang.Class({
{ name: 'gear-menu',
callback: this._onActionToggle,
state: GLib.Variant.new('b', false),
- accel: 'F10',
- window_mode: WindowMode.WindowMode.PREVIEW },
+ accel: 'F10' },
{ name: 'view-as',
callback: this._onActionViewAs,
create_hook: this._viewAsCreateHook,
diff --git a/src/preview.js b/src/preview.js
index 878925c..f1e49cd 100644
--- a/src/preview.js
+++ b/src/preview.js
@@ -772,7 +772,7 @@ const PreviewToolbar = new Lang.Class({
this._searchAction.enabled = false;
this._gearMenu = Application.application.lookup_action('gear-menu');
- this._gearMenu.enabled = true;
+ this._gearMenu.enabled = false;
// back button, on the left of the toolbar
let backButton = this.addBackButton();
@@ -857,6 +857,7 @@ const PreviewToolbar = new Lang.Class({
return;
this._model = model;
+ this._gearMenu.enabled = true;
this._enableSearch();
this._setToolbarTitle();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]