Replaced deprecated GObject methods with GLib methods

This commit is contained in:
William Orr
2013-05-06 12:18:10 -04:00
committed by Daniel Narvaez
parent 3a8760c9e4
commit e649070aa2
6 changed files with 13 additions and 10 deletions
+2 -1
View File
@@ -22,6 +22,7 @@ STABLE.
import time
from gi.repository import GObject
from gi.repository import GLib
EASE_OUT_EXPO = 0
EASE_IN_EXPO = 1
@@ -54,7 +55,7 @@ class Animator(GObject.GObject):
self.stop()
self._start_time = time.time()
self._timeout_sid = GObject.timeout_add(
self._timeout_sid = GLib.timeout_add(
int(self._interval * 1000), self._next_frame_cb)
def stop(self):