summaryrefslogtreecommitdiff
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
parent688420aa29850be9eb777bdf6947b57fe5fb0f0b (diff)
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.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
56 } 56 }
57 pd->source = efl_ref(model); 57 pd->source = efl_ref(model);
58 58
59 efl_event_callback_forwarder_add(model, EFL_MODEL_EVENT_CHILD_ADDED, obj); 59 efl_event_callback_forwarder_priority_add(model, EFL_MODEL_EVENT_CHILD_ADDED, EFL_CALLBACK_PRIORITY_BEFORE, obj);
60 efl_event_callback_forwarder_add(model, EFL_MODEL_EVENT_CHILD_REMOVED, obj); 60 efl_event_callback_forwarder_priority_add(model, EFL_MODEL_EVENT_CHILD_REMOVED, EFL_CALLBACK_PRIORITY_BEFORE, obj);
61 efl_event_callback_forwarder_add(model, EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED, obj); 61 efl_event_callback_forwarder_priority_add(model, EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED, EFL_CALLBACK_PRIORITY_BEFORE, obj);
62 efl_event_callback_forwarder_add(model, EFL_MODEL_EVENT_PROPERTIES_CHANGED, obj); 62 efl_event_callback_forwarder_priority_add(model, EFL_MODEL_EVENT_PROPERTIES_CHANGED, EFL_CALLBACK_PRIORITY_BEFORE, obj);
63} 63}
64 64
65static Efl_Model * 65static Efl_Model *