Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/mmm_modules/timer.py
diff options
context:
space:
mode:
Diffstat (limited to 'mmm_modules/timer.py')
-rw-r--r--mmm_modules/timer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mmm_modules/timer.py b/mmm_modules/timer.py
index 80eaaf4..0a4c104 100644
--- a/mmm_modules/timer.py
+++ b/mmm_modules/timer.py
@@ -41,7 +41,7 @@ else:
from utils import load_image
class TimerWidget (Gtk.HBox):
- __gsignals__ = {'timer_toggle' : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, (bool,)),}
+ __gsignals__ = {'timer_toggle' : (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, (bool,)),}
def __init__ (self, bg_color="#DD4040", fg_color="#4444FF", lbl_color="#DD4040", can_stop=True):
Gtk.HBox.__init__(self)
self.counter = Gtk.EventBox()
@@ -100,7 +100,7 @@ class TimerWidget (Gtk.HBox):
self.start_time = time() - self.start_time
self.do_tick()
if self.timer_id is None:
- self.timer_id = gobject.timeout_add(1000, self.do_tick)
+ self.timer_id = GObject.timeout_add(1000, self.do_tick)
self.emit('timer_toggle', True)
def stop (self, finished=False):
@@ -108,7 +108,7 @@ class TimerWidget (Gtk.HBox):
return
self.icon.set_from_pixbuf(self.icons[1])
if self.timer_id is not None:
- gobject.source_remove(self.timer_id)
+ GObject.source_remove(self.timer_id)
self.timer_id = None
self.start_time = time() - self.start_time
if not finished: