Improving seekbar behavior / fixing a bug
[watersofshiloah] / src / util / go_utils.py
index 515041d..ccfc78a 100644 (file)
@@ -110,9 +110,9 @@ class Timeout(object):
                assert 0 <= timeoutInSeconds
 
                if timeoutInSeconds == 0:
                assert 0 <= timeoutInSeconds
 
                if timeoutInSeconds == 0:
-                       self.__timeoutId = gobject.idle_add(self._on_once)
+                       self.__timeoutId = gobject.idle_add(callback)
                else:
                else:
-                       self.__timeoutId = timeout_add_seconds(timeoutInSeconds, self._on_once)
+                       self.__timeoutId = timeout_add_seconds(timeoutInSeconds, callback)
 
        def is_running(self):
                return self.__timeoutId is not None
 
        def is_running(self):
                return self.__timeoutId is not None