changelog ?

vINCENT

On Tue, 29 Nov 2011, Enlightenment SVN wrote:

> Log:
> ecore: Allow quitting the main loop before entering it
>
>  elementary_config does this, and the glib based main loop didn't support it.
>
>  Signed-off-by: Mike McCormack <mj.mccorm...@samsung.com>
>
> Author:       mike_m
> Date:         2011-11-29 01:24:51 -0800 (Tue, 29 Nov 2011)
> New Revision: 65683
> Trac:         http://trac.enlightenment.org/e/changeset/65683
>
> Modified:
>  trunk/ecore/src/lib/ecore/ecore_main.c
>
> Modified: trunk/ecore/src/lib/ecore/ecore_main.c
> ===================================================================
> --- trunk/ecore/src/lib/ecore/ecore_main.c    2011-11-29 09:24:41 UTC (rev 
> 65682)
> +++ trunk/ecore/src/lib/ecore/ecore_main.c    2011-11-29 09:24:51 UTC (rev 
> 65683)
> @@ -207,9 +207,7 @@
> #endif
>
> static int in_main_loop = 0;
> -#ifndef USE_G_MAIN_LOOP
> static int do_quit = 0;
> -#endif
> static Ecore_Fd_Handler *fd_handlers = NULL;
> static Ecore_Fd_Handler *fd_handler_current = NULL;
> static Eina_List *fd_handlers_with_prep = NULL;
> @@ -889,8 +887,13 @@
>    in_main_loop--;
>    _ecore_unlock();
> #else
> -   ecore_main_loop = g_main_loop_new(NULL, FALSE);
> -   g_main_loop_run(ecore_main_loop);
> +   if (!do_quit)
> +     {
> +        if (!ecore_main_loop)
> +          ecore_main_loop = g_main_loop_new(NULL, FALSE);
> +        g_main_loop_run(ecore_main_loop);
> +     }
> +   do_quit = 0;
> #endif
> }
>
> @@ -904,10 +907,10 @@
> EAPI void
> ecore_main_loop_quit(void)
> {
> -#ifndef USE_G_MAIN_LOOP
>    do_quit = 1;
> -#else
> -   g_main_loop_quit(ecore_main_loop);
> +#ifdef USE_G_MAIN_LOOP
> +   if (ecore_main_loop)
> +     g_main_loop_quit(ecore_main_loop);
> #endif
> }
>
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
>

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to