[gnome-documents/wip/gepub] preview: make preview a public field of PreviewNavControls
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/gepub] preview: make preview a public field of PreviewNavControls
- Date: Wed, 22 Jun 2016 13:40:56 +0000 (UTC)
commit 04a1089b5ed51efd2a6c4e8c40dc08e68fb0bb46
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Jun 21 13:24:21 2016 -0700
preview: make preview a public field of PreviewNavControls
src/preview.js | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/preview.js b/src/preview.js
index 2a1f28a..757ca9e 100644
--- a/src/preview.js
+++ b/src/preview.js
@@ -100,7 +100,7 @@ const PreviewNavControls = new Lang.Class({
Name: 'PreviewNavControls',
_init: function(preview, overlay) {
- this._preview = preview;
+ this.preview = preview;
this._overlay = overlay;
this._visible = false;
@@ -149,7 +149,7 @@ const PreviewNavControls = new Lang.Class({
this._tapGesture = new Gtk.GestureMultiPress({ propagation_phase: Gtk.PropagationPhase.CAPTURE,
touch_only: true,
- widget: this._preview.view });
+ widget: this.preview.view });
this._tapGesture.connect('released', Lang.bind(this, this._onMultiPressReleased));
this._tapGesture.connect('stopped', Lang.bind(this, this._onMultiPressStopped));
},
@@ -201,11 +201,11 @@ const PreviewNavControls = new Lang.Class({
},
_onPrevClicked: function() {
- this._preview.goPrev();
+ this.preview.goPrev();
},
_onNextClicked: function() {
- this._preview.goNext();
+ this.preview.goNext();
},
_autoHide: function() {
@@ -229,10 +229,10 @@ const PreviewNavControls = new Lang.Class({
},
_updateVisibility: function() {
- let currentPage = this._preview.page;
- let numPages = this._preview.numPages;
+ let currentPage = this.preview.page;
+ let numPages = this.preview.numPages;
- if (!this._visible || !this._visibleInternal || !this._preview.hasPages) {
+ if (!this._visible || !this._visibleInternal || !this.preview.hasPages) {
if (this.bar_widget)
this._fadeOutButton(this.bar_widget);
this._fadeOutButton(this.prev_widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]