Ticket #3662: 0001-Show-bookmark-in-the-first-page-SL-3662.patch

File 0001-Show-bookmark-in-the-first-page-SL-3662.patch, 1.2 KB (added by humitos, 12 years ago)
  • readactivity.py

    From 6f6e1298c15b241b329cb813dc1d34356a6b627d Mon Sep 17 00:00:00 2001
    Message-Id: <6f6e1298c15b241b329cb813dc1d34356a6b627d.1338476904.git.humitos@gmail.com>
    From: Manuel Kaufmann <humitos@gmail.com>
    Date: Thu, 31 May 2012 12:08:18 -0300
    Subject: [PATCH Read] 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>
    ---
     readactivity.py |    5 +++++
     1 file changed, 5 insertions(+)
    
    diff --git a/readactivity.py b/readactivity.py
    index 5e23b86..7cbe065 100644
    a b class ReadActivity(activity.Activity): 
    834834        self._view.set_current_page(current_page)
    835835        self._update_nav_buttons(current_page)
    836836
     837        # README: bookmark sidebar is not showing the bookmark in the
     838        # first page because this is updated just if the page number changes
     839        if current_page == 0:
     840            self._sidebar.update_for_page(current_page)
     841
    837842        # We've got the document, so if we're a shared activity, offer it
    838843        try:
    839844            if self.get_shared():