~ted/zeitgeist/action-events

« back to all changes in this revision

Viewing changes to examples/python/insert_event.py

  • Committer: Seif Lotfy
  • Date: 2013-03-11 00:22:13 UTC
  • Revision ID: git-v1:7773494f9de3c9da6427124c86860e6d0fd5f355
Fix python examples to use GLib instead of GObject for the mainloop

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from gi.repository import Zeitgeist, GObject
 
1
from gi.repository import Zeitgeist, GLib
2
2
import time
3
3
 
4
4
log = Zeitgeist.Log.get_default()
5
 
mainloop = GObject.MainLoop()
 
5
mainloop = GLib.MainLoop()
6
6
 
7
7
def on_events_inserted(log, time_range, events):
8
8
    print events