[gnome-books/wip/hadess/gnome-books: 8/8] Remove unused edit view
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-books/wip/hadess/gnome-books: 8/8] Remove unused edit view
- Date: Thu, 24 Jan 2019 16:06:27 +0000 (UTC)
commit 0c30089e4b23867fbe95bbd8cc6feb0463dc911b
Author: Bastien Nocera <hadess hadess net>
Date: Thu Jan 24 13:22:30 2019 +0100
Remove unused edit view
po/POTFILES.in | 1 -
src/edit.js | 153 ----------------------------------
src/embed.js | 5 --
src/evinceview.js | 7 --
src/meson.build | 1 -
src/org.gnome.Books.src.gresource.xml | 1 -
src/windowMode.js | 1 -
7 files changed, 169 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 9338b788..ece86fa6 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -17,7 +17,6 @@ data/ui/selection-toolbar.ui
data/ui/view-menu.ui
src/application.js
src/documents.js
-src/edit.js
src/embed.js
src/epubview.js
src/evinceview.js
diff --git a/src/embed.js b/src/embed.js
index 26e6fe21..32704746 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -24,7 +24,6 @@ const Mainloop = imports.mainloop;
const Application = imports.application;
const EPUBView = imports.epubview;
-const Edit = imports.edit;
const EvinceView = imports.evinceview;
const Search = imports.search;
const Overview = imports.overview;
@@ -71,9 +70,6 @@ const View = new Lang.Class({
case WindowMode.WindowMode.PREVIEW_EPUB:
constructor = EPUBView.EPUBView;
break;
- case WindowMode.WindowMode.EDIT:
- constructor = Edit.EditView;
- break;
default:
return;
}
@@ -108,7 +104,6 @@ const View = new Lang.Class({
break;
case WindowMode.WindowMode.PREVIEW_EV:
case WindowMode.WindowMode.PREVIEW_EPUB:
- case WindowMode.WindowMode.EDIT:
this._createPreview(mode);
this._stack.visible_child = this._preview;
break;
diff --git a/src/evinceview.js b/src/evinceview.js
index d83772b5..0d18e0ec 100644
--- a/src/evinceview.js
+++ b/src/evinceview.js
@@ -120,10 +120,6 @@ var EvinceView = new Lang.Class({
this._bookmarks.remove(bookmark);
},
- _edit: function() {
- Application.modeController.setWindowMode(WindowMode.WindowMode.EDIT);
- },
-
_print: function() {
let doc = Application.documentManager.getActiveItem();
if (doc)
@@ -174,8 +170,6 @@ var EvinceView = new Lang.Class({
state: GLib.Variant.new('b', false),
stateChanged: Lang.bind(this, this._bookmarkStateChanged),
accels: ['<Primary>d'] },
- { name: 'edit-current',
- callback: Lang.bind(this, this._edit) },
{ name: 'print-current',
callback: Lang.bind(this, this._print),
accels: ['<Primary>p'] },
@@ -257,7 +251,6 @@ var EvinceView = new Lang.Class({
this._onPageChanged();
this.getAction('copy').enabled = false;
- this.getAction('edit-current').enabled = doc.canEdit();
this.getAction('print-current').enabled = doc.canPrint(docModel);
let presentCurrent = this.getAction('present-current');
if (presentCurrent)
diff --git a/src/meson.build b/src/meson.build
index 069d0573..5288ace7 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -44,7 +44,6 @@ resource_data = files(
'application.js',
'changeMonitor.js',
'documents.js',
- 'edit.js',
'embed.js',
'epubview.js',
'errorBox.js',
diff --git a/src/org.gnome.Books.src.gresource.xml b/src/org.gnome.Books.src.gresource.xml
index d7ac2a3a..ab2afe5c 100644
--- a/src/org.gnome.Books.src.gresource.xml
+++ b/src/org.gnome.Books.src.gresource.xml
@@ -4,7 +4,6 @@
<file>application.js</file>
<file>changeMonitor.js</file>
<file>documents.js</file>
- <file>edit.js</file>
<file>epubview.js</file>
<file>embed.js</file>
<file>errorBox.js</file>
diff --git a/src/windowMode.js b/src/windowMode.js
index ccd4cf8a..67e3518c 100644
--- a/src/windowMode.js
+++ b/src/windowMode.js
@@ -27,7 +27,6 @@ var WindowMode = {
DOCUMENTS: 1,
PREVIEW_EV: 2,
PREVIEW_EPUB: 4,
- EDIT: 5,
COLLECTIONS: 6,
SEARCH: 7,
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]