Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/readactivity.py
diff options
context:
space:
mode:
authorManuel Kaufmann <humitos@gmail.com>2012-05-31 15:08:41 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-06-01 19:17:46 (GMT)
commit4b3a74a84a5bcfd95a1b3d49c682c036fb095660 (patch)
tree3aabd5e67e51b95326297dab8427da9d6248ad44 /readactivity.py
parent8f59aced1452fd766f4acac9a2392582d2db6dcb (diff)
Show bookmark in the first page SL #3662
Show the bookmark for the first page (if any) in the sidebar when the file is resumed from the Journal. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org> Tested-by: Simon Schampijer <simon@laptop.org>
Diffstat (limited to 'readactivity.py')
-rw-r--r--readactivity.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/readactivity.py b/readactivity.py
index 5e23b86..7cbe065 100644
--- a/readactivity.py
+++ b/readactivity.py
@@ -834,6 +834,11 @@ class ReadActivity(activity.Activity):
self._view.set_current_page(current_page)
self._update_nav_buttons(current_page)
+ # README: bookmark sidebar is not showing the bookmark in the
+ # first page because this is updated just if the page number changes
+ if current_page == 0:
+ self._sidebar.update_for_page(current_page)
+
# We've got the document, so if we're a shared activity, offer it
try:
if self.get_shared():