diff options
Diffstat (limited to 'mmm_modules')
-rwxr-xr-x | mmm_modules/image_category.py | 6 | ||||
-rw-r--r-- | mmm_modules/timer.py | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/mmm_modules/image_category.py b/mmm_modules/image_category.py index 92af2ee..30cc866 100755 --- a/mmm_modules/image_category.py +++ b/mmm_modules/image_category.py @@ -154,8 +154,8 @@ class CategoryDirectory (object): class ImageSelectorWidget (Gtk.Table): - __gsignals__ = {'category_press' : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()), - 'image_press' : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()),} + __gsignals__ = {'category_press' : (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, ()), + 'image_press' : (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, ()),} def __init__ (self,parentp, width=IMAGE_SIZE, @@ -393,7 +393,7 @@ class ImageSelectorWidget (Gtk.Table): self.image.set_from_pixbuf(self.category.get_image(obj.get('filename', None))) class CategorySelector (Gtk.ScrolledWindow): - __gsignals__ = {'selected' : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, (str,))} + __gsignals__ = {'selected' : (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, (str,))} def __init__ (self, title=None, selected_category_path=None, path=None, extra=()): Gtk.ScrolledWindow.__init__ (self) 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: |