[gnome-documents/wip/gepub: 2/4] epub: count pages from zero



commit 053231e9798be6776d98623dc472fabbfa212531
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]