[meld] diffmap: Fix thinko with secondary steppers and offset calculations
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] diffmap: Fix thinko with secondary steppers and offset calculations
- Date: Sat, 3 Oct 2015 20:25:58 +0000 (UTC)
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]