Skip to content

Commit

Permalink
relpace glib with GObject, to prevent (Segmentation fault)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehabsas committed Feb 22, 2014
1 parent 49c824d commit aa308f6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions monajat/applet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 ()
Expand Down

0 comments on commit aa308f6

Please sign in to comment.