[gnome-documents] embed: trivial code cleanup
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] embed: trivial code cleanup
- Date: Mon, 31 Oct 2016 05:39:39 +0000 (UTC)
commit b4518d1baaff22992a0912b1111e9787a252851b
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Oct 30 22:34:22 2016 -0700
embed: trivial code cleanup
src/embed.js | 9 ++++-----
src/mainWindow.js | 2 +-
2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/embed.js b/src/embed.js
index 12c60ce..74f355a 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -217,16 +217,15 @@ const Embed = new Lang.Class({
let windowMode = Application.modeController.getWindowMode();
if (windowMode == WindowMode.WindowMode.PREVIEW_EV) {
- let preview = this.getPreview();
- let fullscreen = preview.fullscreen;
+ let fullscreen = this._view.view.fullscreen;
if (fullscreen)
- return preview.getFullscreenToolbar();
+ return this._view.view.getFullscreenToolbar();
}
return this._view.toolbar;
},
- getPreview: function() {
- return this._view.view;
+ get view() {
+ return this._view;
}
});
diff --git a/src/mainWindow.js b/src/mainWindow.js
index d4955f7..f27c1c4 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -135,7 +135,7 @@ const MainWindow = new Lang.Class({
if (button != 8)
return false;
- let view = this._embed.getPreview();
+ let view = this._embed.view.view;
let action = view.getAction('go-back');
if (action) {
action.activate(null);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]