Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/evinceadapter.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-08-29 14:12:53 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-09-10 14:19:32 (GMT)
commit759188370815f490a6f85343c679e2d3372e9b66 (patch)
tree817365922d64824da808881fc2069ad093f83402 /evinceadapter.py
parent9d18b220d83f274328806bcb5a56727c963c5be2 (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 'evinceadapter.py')
-rw-r--r--evinceadapter.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/evinceadapter.py b/evinceadapter.py
index 06071cd..59a4e3e 100644
--- a/evinceadapter.py
+++ b/evinceadapter.py
@@ -91,6 +91,10 @@ class EvinceViewer():
def get_current_page(self):
return self._model.props.page
+ def get_current_link(self):
+ # TODO
+ return ""
+
def set_current_page(self, page):
if page >= self._document.get_n_pages():
page = self._document.get_n_pages() - 1
@@ -273,12 +277,8 @@ class EvinceViewer():
break
"""
- activity._navigator_toolbar_button.show()
- activity._navigator.show_all()
-
- activity._toc_model = self._index_model
- activity._navigator.set_model(activity._toc_model)
- activity._navigator.set_active(0)
+ activity.show_navigator_button()
+ activity.set_navigator_model(self._epub.get_links_model())
return True
def find_set_highlight_search(self, set_highlight_search):