summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeif Lotfy <seif@lotfy.com>2013-03-11 01:22:13 +0100
committerSeif Lotfy <seif@lotfy.com>2013-03-11 01:22:13 +0100
commit7773494f9de3c9da6427124c86860e6d0fd5f355 (patch)
treed7c498f24aef8a74dbb10a7022418c31c3cead55
parentd1ce0271663c71c1e069095880769bdcf3fa0691 (diff)
downloadzeitgeist-7773494f9de3c9da6427124c86860e6d0fd5f355.tar.gz
Fix python examples to use GLib instead of GObject for the mainloop
-rw-r--r--examples/python/find_events.py4
-rw-r--r--examples/python/get_events.py4
-rw-r--r--examples/python/insert_event.py4
-rw-r--r--examples/python/monitor.py4
4 files changed, 8 insertions, 8 deletions
diff --git a/examples/python/find_events.py b/examples/python/find_events.py
index 868cc6ba..21c151ab 100644
--- a/examples/python/find_events.py
+++ b/examples/python/find_events.py
@@ -1,6 +1,6 @@
-from gi.repository import Zeitgeist, GObject
+from gi.repository import Zeitgeist, GLib
log = Zeitgeist.Log.get_default()
-mainloop = GObject.MainLoop()
+mainloop = GLib.MainLoop()
def on_events_received(log, result, data):
events = log.find_events_finish(result)
diff --git a/examples/python/get_events.py b/examples/python/get_events.py
index 56c4d293..915da07a 100644
--- a/examples/python/get_events.py
+++ b/examples/python/get_events.py
@@ -1,6 +1,6 @@
-from gi.repository import Zeitgeist, GObject
+from gi.repository import Zeitgeist, GLib
log = Zeitgeist.Log.get_default()
-mainloop = GObject.MainLoop()
+mainloop = GLib.MainLoop()
def callback (log, result, data):
events = log.get_events_finish(result)
diff --git a/examples/python/insert_event.py b/examples/python/insert_event.py
index 0b5285d0..a72cf1a8 100644
--- a/examples/python/insert_event.py
+++ b/examples/python/insert_event.py
@@ -1,8 +1,8 @@
-from gi.repository import Zeitgeist, GObject
+from gi.repository import Zeitgeist, GLib
import time
log = Zeitgeist.Log.get_default()
-mainloop = GObject.MainLoop()
+mainloop = GLib.MainLoop()
def on_events_inserted(log, time_range, events):
print events
diff --git a/examples/python/monitor.py b/examples/python/monitor.py
index 716e1c20..4f8040f8 100644
--- a/examples/python/monitor.py
+++ b/examples/python/monitor.py
@@ -1,6 +1,6 @@
-from gi.repository import Zeitgeist, GObject
+from gi.repository import Zeitgeist, GLib
log = Zeitgeist.Log.get_default()
-mainloop = GObject.MainLoop()
+mainloop = GLib.MainLoop()
def on_events_inserted(log, time_range, events):
print time_range, events