aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/msec/msecgui.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/msec/msecgui.py b/src/msec/msecgui.py
index 7451618..c2980d0 100755
--- a/src/msec/msecgui.py
+++ b/src/msec/msecgui.py
@@ -18,6 +18,7 @@ import time
import warnings
warnings.filterwarnings('error', module='gtk')
try:
+ from gi.repository import GLib
from gi.repository import GdkPixbuf
from gi.repository import Gtk
import gi
@@ -268,7 +269,7 @@ class MsecGui:
# pending signals
self.signals = Queue.Queue()
- GObject.timeout_add(500, self.check_signals)
+ GLib.timeout_add(500, self.check_signals)
self.window.show_all()
@@ -285,7 +286,7 @@ class MsecGui:
s = self.signals.get()
if s == signal.SIGTERM:
self.quit(self.window)
- GObject.timeout_add(500, self.check_signals)
+ GLib.timeout_add(500, self.check_signals)
def check_for_changes(self, curconfig, curperms):
"""Checks for changes in configuration. Returns number of configuration