[gnome-documents/wip/gepub] epub: count pages from zero
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/gepub] epub: count pages from zero
- Date: Sun, 12 Jun 2016 23:06:12 +0000 (UTC)
commit 81be192a1dcae3161dcbce47adc807a05cd52d87
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Jun 12 15:11:37 2016 -0700
epub: count pages from zero
Fixes prev/next buttons not hiding/showing correctly.
src/epubview.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/epubview.js b/src/epubview.js
index f91a2cb..bbe4ed9 100644
--- a/src/epubview.js
+++ b/src/epubview.js
@@ -51,7 +51,7 @@ const EPUBView = new Lang.Class({
transition_type: Gtk.StackTransitionType.CROSSFADE });
this._overlay = overlay;
- this._page = 1;
+ this._page = 0;
this._errorBox = new ErrorBox.ErrorBox();
this.add_named(this._errorBox, 'error');
@@ -124,7 +124,7 @@ const EPUBView = new Lang.Class({
return;
this.set_visible_child_full('view', Gtk.StackTransitionType.NONE);
- this._page = 1;
+ this._page = 0;
this._navControls.show();
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]