From cdf04241dbff8cd2683d6713aef3ad0908b0332b Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Wed, 6 Jul 2016 15:51:25 -0700 Subject: [PATCH] ecore: on first arguments event notify the needs to initialize the process state. --- src/lib/ecore/ecore_main.c | 3 +++ src/lib/ecore/efl_loop.eo | 1 + 2 files changed, 4 insertions(+) diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c index 438b5c7..1bb6999 100644 --- a/src/lib/ecore/ecore_main.c +++ b/src/lib/ecore/ecore_main.c @@ -2862,10 +2862,13 @@ _efl_loop_arguments_cleanup(Eina_Array *arga) static void _efl_loop_arguments_send(void *data, void *value EINA_UNUSED) { + static Eina_Bool initialization = EINA_TRUE; Efl_Loop_Arguments arge; Eina_Array *arga = data; arge.argv = arga; + arge.initialization = initialization; + initialization = EINA_FALSE; eo_event_callback_call(ecore_main_loop_get(), EFL_LOOP_EVENT_ARGUMENTS, &arge); diff --git a/src/lib/ecore/efl_loop.eo b/src/lib/ecore/efl_loop.eo index 74544cd..6b0d503 100644 --- a/src/lib/ecore/efl_loop.eo +++ b/src/lib/ecore/efl_loop.eo @@ -2,6 +2,7 @@ import efl_types; struct Efl.Loop.Arguments { argv: const(array); + initialization: bool; [[Set to true when the program should initialize its internal state. This happen once per process instance.]] } class Efl.Loop (Eo.Base) -- 2.7.4