summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/efl_ui_focus_composition.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_ui_focus_composition.c b/src/lib/elementary/efl_ui_focus_composition.c
index 8a4b3dfe4c..2eda064b07 100644
--- a/src/lib/elementary/efl_ui_focus_composition.c
+++ b/src/lib/elementary/efl_ui_focus_composition.c
@@ -92,10 +92,11 @@ _state_apply(Eo *obj, Efl_Ui_Focus_Composition_Data *pd)
92 } 92 }
93} 93}
94static void 94static void
95_del(void *data, const Efl_Event *ev) 95_invalidate(void *data, const Efl_Event *ev)
96{ 96{
97 Efl_Ui_Focus_Composition_Data *pd = efl_data_scope_get(data, EFL_UI_FOCUS_COMPOSITION_MIXIN); 97 Efl_Ui_Focus_Composition_Data *pd = efl_data_scope_get(data, EFL_UI_FOCUS_COMPOSITION_MIXIN);
98 pd->register_target = eina_list_remove(pd->register_target, ev->object); 98 pd->register_target = eina_list_remove(pd->register_target, ev->object);
99 pd->registered_targets = eina_list_remove(pd->registered_targets, ev->object);
99} 100}
100 101
101EOLIAN static void 102EOLIAN static void
@@ -107,7 +108,7 @@ _efl_ui_focus_composition_composition_elements_set(Eo *obj, Efl_Ui_Focus_Composi
107 pd->targets_ordered = eina_list_free(pd->targets_ordered); 108 pd->targets_ordered = eina_list_free(pd->targets_ordered);
108 EINA_LIST_FREE(pd->register_target, elem) 109 EINA_LIST_FREE(pd->register_target, elem)
109 { 110 {
110 efl_event_callback_del(elem, EFL_EVENT_DEL, _del, obj); 111 efl_event_callback_del(elem, EFL_EVENT_INVALIDATE, _invalidate, obj);
111 } 112 }
112 113
113 pd->order = eina_list_free(pd->order); 114 pd->order = eina_list_free(pd->order);
@@ -125,7 +126,7 @@ _efl_ui_focus_composition_composition_elements_set(Eo *obj, Efl_Ui_Focus_Composi
125 if (efl_isa(elem, EFL_UI_FOCUS_OBJECT_MIXIN)) 126 if (efl_isa(elem, EFL_UI_FOCUS_OBJECT_MIXIN))
126 { 127 {
127 pd->register_target = eina_list_append(pd->register_target , o); 128 pd->register_target = eina_list_append(pd->register_target , o);
128 efl_event_callback_add(o, EFL_EVENT_DEL, _del, obj); 129 efl_event_callback_add(o, EFL_EVENT_INVALIDATE, _invalidate, obj);
129 } 130 }
130 else 131 else
131 { 132 {