[meld] diffmap: Fix thinko with secondary steppers and offset calculations



commit 9d6fb085abd5d8953201530ffb9e0e2d8061a558
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Oct 4 06:14:35 2015 +1000

    diffmap: Fix thinko with secondary steppers and offset calculations

 meld/diffmap.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/meld/diffmap.py b/meld/diffmap.py
index 891f5be..c35e108 100644
--- a/meld/diffmap.py
+++ b/meld/diffmap.py
@@ -82,14 +82,14 @@ class DiffMap(Gtk.DrawingArea):
         stepper_spacing = scrollbar.style_get_property("stepper-spacing")
 
         has_backward = scrollbar.style_get_property("has-backward-stepper")
-        has_secondary_forward = scrollbar.style_get_property(
-            "has-secondary-forward-stepper")
         has_secondary_backward = scrollbar.style_get_property(
             "has-secondary-backward-stepper")
+        has_secondary_forward = scrollbar.style_get_property(
+            "has-secondary-forward-stepper")
         has_forward = scrollbar.style_get_property("has-forward-stepper")
         steppers = [
-            has_backward, has_secondary_forward,
-            has_secondary_backward, has_forward
+            has_backward, has_secondary_backward,
+            has_secondary_forward, has_forward,
         ]
 
         offset = stepper_size * steppers[0:2].count(True)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]