Skip to content

Commit

Permalink
Use new do_stop api for animation
Browse files Browse the repository at this point in the history
  • Loading branch information
samdroid-apps committed Jul 26, 2016
1 parent 160f5a8 commit 0ff246e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions webactivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,12 +675,6 @@ def next_frame(self, frame):
self._widget.queue_draw()

def __draw_cb(self, widget, cr):
if self._frame == 3.0:
self._tray_widget.show_thumb()
self._widget.disconnect(self._draw_hid)
self._widget.queue_draw()
return

cr.save()

thumb_scale_w = THUMB_WIDTH * 1.0 / self._balloc.width
Expand Down Expand Up @@ -724,3 +718,8 @@ def __draw_cb(self, widget, cr):
cr.stroke()

cr.restore()

def do_stop(self):
self._tray_widget.show_thumb()
self._widget.disconnect(self._draw_hid)
self._widget.queue_draw()

0 comments on commit 0ff246e

Please sign in to comment.