From 759188370815f490a6f85343c679e2d3372e9b66 Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Wed, 29 Aug 2012 14:12:53 +0000 Subject: Show the table of contents in a panel The table of contents, actually implemented in epub backend, is displayed in a later panel, instead of in a combo, to do easier the interaction with touch, and provide context. The code is now more general to allow the implementation in the pdf backend too. The button used to display the table of contents, was moved from the main toolbar to the view subtoolbar. Signed-off-by: Gonzalo Odiard --- (limited to 'epubview') diff --git a/epubview/epubview.py b/epubview/epubview.py index ea52b5a..8865aeb 100644 --- a/epubview/epubview.py +++ b/epubview/epubview.py @@ -556,7 +556,6 @@ class _View(Gtk.HBox): if self._loaded_page == pageno: return - self._on_page_changed(self._loaded_page, pageno) filename = self._paginator.get_file_for_pageno(pageno) filename = filename.replace('file://', '') @@ -587,6 +586,7 @@ class _View(Gtk.HBox): else: self._loaded_page = pageno self._scroll_page() + self._on_page_changed(self._loaded_page, pageno) def _insert_js_reference(self, file_name, path): js_reference = '