Skip to content

Commit

Permalink
[EFL] fix mainloop
Browse files Browse the repository at this point in the history
  • Loading branch information
borisfaure committed Oct 22, 2009
1 parent 5f9a5e0 commit 6e3f211
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions amsn2/gui/front_ends/efl/main_loop.py
Expand Up @@ -9,13 +9,15 @@ def __init__(self, amsn_core):
elementary.init()

def run(self):
#ecore.main_loop_glib_integrate()
mainloop = gobject.MainLoop(is_running=True)
context = mainloop.get_context()

def glib_context_iterate():
iters = 0
while iters < 10 and context.pending():
context.iteration()
iters += 1
return True

# Every 100ms, call an iteration of the glib main context loop
Expand Down

0 comments on commit 6e3f211

Please sign in to comment.