Skip to contentSkip to conversation

hob: fix rotating progress icon animation

PATCH New Paul Eggleton 1 participant 1 message Dec 2, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hob: fix rotating progress icon animation

I've always found it somewhat annoying that this icon's rotation animation wasn't quite correct; this was because it was looping around to the second position instead of the first, which made it appear to stutter.

---
 lib/bb/ui/crumbs/hobwidget.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/ui/crumbs/hobwidget.py +1 -1
index 3707d61..2b969c1 100644
@@ -734,7 +734,7 @@ class HobCellRendererController(gobject.GObject):
         self.current_angle_pos += self.step_angle
         if self.running_mode == self.MODE_CYCLE_RUNNING:
             if (self.current_angle_pos >= 1):
-                self.current_angle_pos = self.step_angle
+                self.current_angle_pos = 0
         else:
             if self.current_angle_pos > 1:
                 self.force_stop()
Signature · 1 line
1.8.1.2