diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2012-08-29 14:12:53 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2012-09-10 14:19:32 (GMT) |
commit | 759188370815f490a6f85343c679e2d3372e9b66 (patch) | |
tree | 817365922d64824da808881fc2069ad093f83402 /epubview | |
parent | 9d18b220d83f274328806bcb5a56727c963c5be2 (diff) |
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 <gonzalo@laptop.org>
Diffstat (limited to 'epubview')
-rw-r--r-- | epubview/epubview.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 = '<script type="text/javascript" ' + \ |