Added glib iteration inside ecore main loop, fixed wrong function definition.