From 58e62d6e2dade04d4fb010a244447d2b36b669dc Mon Sep 17 00:00:00 2001 From: Ragner Magalhaes Date: Tue, 2 Dec 2008 20:29:44 +0000 Subject: [PATCH 1/1] Fixed high cpu usage by glib iteration. FIXES: - Changed ecore.idler_add with ecore.timer_add. Signed-off-by: Bruno Abinader git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1311 596f6dd7-e928-0410-a184-9e12fd12cf7e --- purple.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/purple.pyx b/purple.pyx index 0c4be9a..62f441b 100644 --- a/purple.pyx +++ b/purple.pyx @@ -73,7 +73,7 @@ cdef class Purple: plugin.c_purple_plugins_add_search_path(default_path) # adds glib iteration inside ecore main loop - ecore.idler_add(self.__glib_iteration_when_idle) + ecore.timer_add(0.001, self.__glib_iteration_when_idle) def __del__(self): core.c_purple_core_quit() -- 1.7.9.5