Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2009-09-08 21:18:40 (GMT)
committer Gary Martin <gary@garycmartin.com>2009-09-08 21:18:40 (GMT)
commita1007c97826a15c28bdb028eb0297f72cc20667a (patch)
tree87926f75462b8eb6bea6ff6d74890e04fefaf0df
parentfa64705d9b4e3ec9a663f4d218a93af9698e3658 (diff)
Reverse the page forward/back spin button so document pages in expected screen direction.
-rw-r--r--toolbar.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolbar.py b/toolbar.py
index 343ea3b..f3df789 100644
--- a/toolbar.py
+++ b/toolbar.py
@@ -305,7 +305,7 @@ class ViewToolbar(gtk.Toolbar):
self.insert(tool_item_page_label, -1)
tool_item_page_label.show()
- self._page_spin_adj = gtk.Adjustment(0, 1, 0, 1, 1, 0)
+ self._page_spin_adj = gtk.Adjustment(0, 1, 0, -1, -1, 0)
self._page_spin = gtk.SpinButton(self._page_spin_adj, 0, 0)
self._page_spin_id = self._page_spin.connect('value-changed', self._page_spin_cb)
self._page_spin.set_numeric(True)
@@ -359,7 +359,7 @@ class ViewToolbar(gtk.Toolbar):
def _page_count_cb(self, canvas, count):
current_page = canvas.get_current_page_num()
- self._page_spin_adj.set_all(current_page, 1, count, 1, 1, 0)
+ self._page_spin_adj.set_all(current_page, 1, count, -1, -1, 0)
self._total_page_label.props.label = \
' / ' + str(count)