Commit 537cdba2 authored by Kai Willadsen's avatar Kai Willadsen

diffmap: PEP8

parent 965139d2
......@@ -82,10 +82,15 @@ 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_foreward = scrollbar.style_get_property("has-forward-stepper")
steppers = [has_backward, has_secondary_forward, has_secondary_backward, has_foreward]
has_secondary_forward = scrollbar.style_get_property(
"has-secondary-forward-stepper")
has_secondary_backward = scrollbar.style_get_property(
"has-secondary-backward-stepper")
has_forward = scrollbar.style_get_property("has-forward-stepper")
steppers = [
has_backward, has_secondary_forward,
has_secondary_backward, has_forward
]
offset = stepper_size * steppers[0:2].count(True)
shorter = stepper_size * steppers.count(True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment