aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-12-12 14:12:28 -0800
committerCedric BAIL <cedric.bail@free.fr>2019-01-02 13:39:17 -0800
commitfff0f68a019ee50a8d6e654ca650a1f23220c468 (patch)
tree34d29171bac4b8f91e16d083bf07bf4bbcb96204 /src/lib
parentcxx: fix build to generate Eina_Future. (diff)
downloadefl-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
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ecore/efl_model_composite.c8
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 *