edje: porting evas smart callbacks to eo

It's the first stage of replacing calls of evas_object_smart_callback_add/del/call
with eo_callback_add/del/call.
This will reduce the use of legacy events and callbacks lists in
smart_object which in turn will improve performance and reduce memory
use.
This commit is contained in:
Avi Levin 2015-04-21 19:00:58 +03:00 committed by Daniel Zaoui
parent 50a37e72fc
commit b563efc52f
2 changed files with 4 additions and 1 deletions

2
src/lib/edje/edje_calc.c Normal file → Executable file
View File

@ -742,7 +742,7 @@ _edje_recalc_do(Edje *ed)
if (!ed->calc_only)
{
if (ed->recalc_call)
evas_object_smart_callback_call(ed->obj, "recalc", NULL);
eo_do(ed->obj, eo_event_callback_call(EDJE_OBJECT_EVENT_RECALC, NULL));
}
else
evas_object_smart_need_recalculate_set(ed->obj, need_calc);

3
src/lib/edje/edje_object.eo Normal file → Executable file
View File

@ -2399,4 +2399,7 @@ class Edje.Object (Evas.Smart_Clipped, Efl.File)
Efl.File.mmap.set;
Efl.File.mmap.get;
}
events {
recalc; /*@ Edje re-calculated the object. */
}
}