]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
hob: fix rotating progress icon animation
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 2 Dec 2013 15:10:34 +0000 (15:10 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 2 Dec 2013 17:51:27 +0000 (17:51 +0000)
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.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/ui/crumbs/hobwidget.py

index 3707d6160d20b00cf86236e1ba63e1b3554d9d42..2b969c146eb658646f5b68a29c6baf0ceb95297e 100644 (file)
@@ -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()