diff options
author | Cedric BAIL <cedric@osg.samsung.com> | 2018-12-12 14:12:28 -0800 |
---|---|---|
committer | Cedric BAIL <cedric.bail@free.fr> | 2019-01-02 13:39:17 -0800 |
commit | fff0f68a019ee50a8d6e654ca650a1f23220c468 (patch) | |
tree | 34d29171bac4b8f91e16d083bf07bf4bbcb96204 | |
parent | 688420aa29850be9eb777bdf6947b57fe5fb0f0b (diff) | |
download | efl-fff0f68a019ee50a8d6e654ca650a1f23220c468.tar.gz |
ecore: make sure that events are being forwarded first.
In case the model being set has already gotten some event callback
set on it, to avoid strange behavior, like event not propagating,
it seems best to make sure the event are forwarded first.
Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de>
Differential Revision: https://phab.enlightenment.org/D7483
-rw-r--r-- | src/lib/ecore/efl_model_composite.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ecore/efl_model_composite.c b/src/lib/ecore/efl_model_composite.c index 225f83d647..2803675b36 100644 --- a/src/lib/ecore/efl_model_composite.c +++ b/src/lib/ecore/efl_model_composite.c @@ -56,10 +56,10 @@ _efl_model_composite_efl_ui_view_model_set(Eo *obj EINA_UNUSED, Efl_Model_Compos } pd->source = efl_ref(model); - efl_event_callback_forwarder_add(model, EFL_MODEL_EVENT_CHILD_ADDED, obj); - efl_event_callback_forwarder_add(model, EFL_MODEL_EVENT_CHILD_REMOVED, obj); - efl_event_callback_forwarder_add(model, EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED, obj); - efl_event_callback_forwarder_add(model, EFL_MODEL_EVENT_PROPERTIES_CHANGED, obj); + efl_event_callback_forwarder_priority_add(model, EFL_MODEL_EVENT_CHILD_ADDED, EFL_CALLBACK_PRIORITY_BEFORE, obj); + efl_event_callback_forwarder_priority_add(model, EFL_MODEL_EVENT_CHILD_REMOVED, EFL_CALLBACK_PRIORITY_BEFORE, obj); + efl_event_callback_forwarder_priority_add(model, EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED, EFL_CALLBACK_PRIORITY_BEFORE, obj); + efl_event_callback_forwarder_priority_add(model, EFL_MODEL_EVENT_PROPERTIES_CHANGED, EFL_CALLBACK_PRIORITY_BEFORE, obj); } static Efl_Model * |