summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/eo/eo_base_class.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index 8132bcea58..bd394910c9 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -237,9 +237,9 @@ _efl_invalidate(_Eo_Object *obj)
237 237
238 id = _eo_obj_id_get(obj); 238 id = _eo_obj_id_get(obj);
239 239
240 efl_event_callback_call(id, EFL_EVENT_INVALIDATE, NULL);
241
242 pd = efl_data_scope_get(id, EFL_OBJECT_CLASS); 240 pd = efl_data_scope_get(id, EFL_OBJECT_CLASS);
241 if (pd->event_cb_EFL_EVENT_INVALIDATE)
242 efl_event_callback_call(id, EFL_EVENT_INVALIDATE, NULL);
243 243
244 efl_invalidate(id); 244 efl_invalidate(id);
245 245
@@ -1575,7 +1575,8 @@ _efl_object_event_callback_priority_add(Eo *obj, Efl_Object_Data *pd,
1575 _eo_callbacks_sorted_insert(pd, cb); 1575 _eo_callbacks_sorted_insert(pd, cb);
1576 _special_event_count_inc(obj, pd, &(cb->items.item)); 1576 _special_event_count_inc(obj, pd, &(cb->items.item));
1577 1577
1578 efl_event_callback_call(obj, EFL_EVENT_CALLBACK_ADD, (void *)arr); 1578 if (pd->event_cb_EFL_EVENT_CALLBACK_ADD)
1579 efl_event_callback_call(obj, EFL_EVENT_CALLBACK_ADD, (void *)arr);
1579 1580
1580 return EINA_TRUE; 1581 return EINA_TRUE;
1581 1582
@@ -1601,8 +1602,8 @@ _efl_object_event_callback_clean(Eo *obj, Efl_Object_Data *pd,
1601 pd->need_cleaning = EINA_TRUE; 1602 pd->need_cleaning = EINA_TRUE;
1602 else 1603 else
1603 _eo_callback_remove(obj, pd, cb); 1604 _eo_callback_remove(obj, pd, cb);
1604 1605 if (pd->event_cb_EFL_EVENT_CALLBACK_DEL)
1605 efl_event_callback_call(obj, EFL_EVENT_CALLBACK_DEL, (void *)array); 1606 efl_event_callback_call(obj, EFL_EVENT_CALLBACK_DEL, (void *)array);
1606} 1607}
1607 1608
1608EOLIAN static Eina_Bool 1609EOLIAN static Eina_Bool
@@ -1729,7 +1730,8 @@ _efl_object_event_callback_array_priority_add(Eo *obj, Efl_Object_Data *pd,
1729 ev_array[i].priority = 0; 1730 ev_array[i].priority = 0;
1730 ev_array[i].func = NULL; 1731 ev_array[i].func = NULL;
1731 ev_array[i].user_data = NULL; 1732 ev_array[i].user_data = NULL;
1732 efl_event_callback_call(obj, EFL_EVENT_CALLBACK_ADD, ev_array); 1733 if (pd->event_cb_EFL_EVENT_CALLBACK_ADD)
1734 efl_event_callback_call(obj, EFL_EVENT_CALLBACK_ADD, ev_array);
1733 1735
1734 return EINA_TRUE; 1736 return EINA_TRUE;
1735 1737