diff --git a/monajat/applet.py b/monajat/applet.py index 73080fd..2c49b6d 100644 --- a/monajat/applet.py +++ b/monajat/applet.py @@ -7,8 +7,7 @@ import locale, gettext import re -import glib -from gi.repository import Gtk, Gdk, Notify, Gst +from gi.repository import Gtk, Gdk, Notify, Gst, GObject import cgi import math import json @@ -429,7 +428,7 @@ def __init__(self): self.last_time = 0 self.first_notif_done = False self.start_time = time.time() - glib.timeout_add_seconds(1, self.timer_cb) + GObject.timeout_add(1, self.timer_cb) def init_notify_cb(self): self.notifycaps = Notify.get_server_caps ()