[gnome-documents/wip/lokdocview-rebase: 5/27] Rename LOKVIEW mode to PREVIEW_LOK
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/lokdocview-rebase: 5/27] Rename LOKVIEW mode to PREVIEW_LOK
- Date: Mon, 4 Jan 2016 12:23:30 +0000 (UTC)
commit e2f9846d10a82438bf46b02292cfe5e81cc9c7a1
Author: Bastien Nocera <hadess hadess net>
Date: Fri Dec 4 17:47:21 2015 +0100
Rename LOKVIEW mode to PREVIEW_LOK
src/application.js | 4 ++--
src/embed.js | 4 ++--
src/mainWindow.js | 2 +-
src/windowMode.js | 8 ++++----
4 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 77a0848..8a69823 100644
--- a/src/application.js
+++ b/src/application.js
@@ -595,10 +595,10 @@ const Application = new Lang.Class({
window_mode: WindowMode.WindowMode.PREVIEW },
{ name: 'zoom-in', accels: ['<Primary>plus', '<Primary>equal'],
window_modes: [WindowMode.WindowMode.PREVIEW,
- WindowMode.WindowMode.LOKVIEW] },
+ WindowMode.WindowMode.PREVIEW_LOK] },
{ name: 'zoom-out', accels: ['<Primary>minus'],
window_modes: [WindowMode.WindowMode.PREVIEW,
- WindowMode.WindowMode.LOKVIEW] },
+ WindowMode.WindowMode.PREVIEW_LOK] },
{ name: 'rotate-left', accels: ['<Primary>Left'],
window_mode: WindowMode.WindowMode.PREVIEW },
{ name: 'rotate-right', accels: ['<Primary>Right'],
diff --git a/src/embed.js b/src/embed.js
index 923e3a1..88c217e 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -273,7 +273,7 @@ const Embed = new Lang.Class({
Application.documentManager.reloadActiveItem();
this._prepareForPreview();
break;
- case WindowMode.WindowMode.LOKVIEW:
+ case WindowMode.WindowMode.PREVIEW_LOK:
if (oldMode == WindowMode.WindowMode.EDIT)
Application.documentManager.reloadActiveItem();
this._prepareForLOKView();
@@ -336,7 +336,7 @@ const Embed = new Lang.Class({
_onLoadStarted: function(manager, doc) {
if (doc.isOpenDocumentFormat())
- Application.modeController.setWindowMode(WindowMode.WindowMode.LOKVIEW);
+ Application.modeController.setWindowMode(WindowMode.WindowMode.PREVIEW_LOK);
else
Application.modeController.setWindowMode(WindowMode.WindowMode.PREVIEW);
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 5c47483..34649b4 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -202,7 +202,7 @@ const MainWindow = new Lang.Class({
case WindowMode.WindowMode.SEARCH:
return this._handleKeyOverview(event);
case WindowMode.WindowMode.EDIT:
- case WindowMode.WindowMode.LOKVIEW:
+ case WindowMode.WindowMode.PREVIEW_LOK: //FIXME should be same as preview
return false;
default:
throw(new Error('Not handled'));
diff --git a/src/windowMode.js b/src/windowMode.js
index 108608f..7af3a77 100644
--- a/src/windowMode.js
+++ b/src/windowMode.js
@@ -30,10 +30,10 @@ const WindowMode = {
NONE: 0,
DOCUMENTS: 1,
PREVIEW: 2,
- EDIT: 3,
- COLLECTIONS: 4,
- SEARCH: 5,
- LOKVIEW: 6
+ PREVIEW_LOK: 3,
+ EDIT: 4,
+ COLLECTIONS: 5,
+ SEARCH: 6
};
const ModeController = new Lang.Class({
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]