summaryrefslogtreecommitdiff
blob: ce9e576cf01db1b7adcc9b0d9104d86c766b8b16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
 .../engine/extensions/datasource_registry.py       |    4 ++--
 zeitgeist-daemon                                   |    2 +-
 zeitgeist-daemon.py                                |    4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/_zeitgeist/engine/extensions/datasource_registry.py b/_zeitgeist/engine/extensions/datasource_registry.py
index 17d357f..fea7d85 100644
--- a/_zeitgeist/engine/extensions/datasource_registry.py
+++ b/_zeitgeist/engine/extensions/datasource_registry.py
@@ -23,7 +23,7 @@ import os
 import cPickle as pickle
 import dbus
 import dbus.service
-import gobject
+from gi.repository import GObject
 import logging
 
 from zeitgeist.datamodel import get_timestamp_for_now
@@ -96,7 +96,7 @@ class DataSourceRegistry(Extension, dbus.service.Object):
 		)
 		
 		self._dirty = True
-		gobject.timeout_add(DISK_WRITE_TIMEOUT, self._write_to_disk)
+		GObject.timeout_add(DISK_WRITE_TIMEOUT, self._write_to_disk)
 		
 	def _write_to_disk(self):
 		data = [DataSource.get_plain(datasource) for datasource in
diff --git a/zeitgeist-daemon b/zeitgeist-daemon
index 3f5ae91..c845d10 100755
--- a/zeitgeist-daemon
+++ b/zeitgeist-daemon
@@ -21,7 +21,7 @@
 
 import sys
 import os
-import gobject
+from gi.repository import GObject
 import glib
 import dbus.mainloop.glib
 import gettext
diff --git a/zeitgeist-daemon.py b/zeitgeist-daemon.py
index 1afe89b..dad24fc 100755
--- a/zeitgeist-daemon.py
+++ b/zeitgeist-daemon.py
@@ -21,7 +21,7 @@
 
 import sys
 import os
-import gobject
+from gi.repository import GObject
 import glib
 import dbus.mainloop.glib
 import gettext
@@ -99,7 +99,7 @@ def do_shell_completion(parser):
 def setup_interface():
 	from _zeitgeist.engine.remote import RemoteInterface
 	dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
-	mainloop = gobject.MainLoop()
+	mainloop = GObject.MainLoop()
 	return mainloop, RemoteInterface(mainloop = mainloop)
 
 def start_datahub():