Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/readactivity.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-04-16 20:03:35 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-04-16 20:03:35 (GMT)
commitd25f56ad025a8b583cfceefc8a5ab14cb08a2b64 (patch)
tree09037b6261f2b68d300e791b8dfe1ca7e418b24e /readactivity.py
parentf80c65bba3ff7f9ac4b7c6118403216b0cff4dcd (diff)
Initialize current page and number of pages in the toolbar - SL #3434
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'readactivity.py')
-rw-r--r--readactivity.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/readactivity.py b/readactivity.py
index 72db01e..c0092d5 100644
--- a/readactivity.py
+++ b/readactivity.py
@@ -193,7 +193,6 @@ class ReadActivity(activity.Activity):
self._num_page_entry = self._create_search()
num_page_item.add(self._num_page_entry)
self._num_page_entry.show()
- self._num_page_entry.set_text('1')
toolbar_box.toolbar.insert(num_page_item, -1)
num_page_item.show()
@@ -815,6 +814,7 @@ class ReadActivity(activity.Activity):
current_page = int(self.metadata.get('Read_current_page', '0'))
_logger.debug('Setting page to: %d', current_page)
self._view.set_current_page(current_page)
+ self._update_nav_buttons(current_page)
# We've got the document, so if we're a shared activity, offer it
try: