forked from enlightenment/efl
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:
parent
50a37e72fc
commit
b563efc52f
|
@ -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);
|
||||
|
|
|
@ -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. */
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue