Le 7 juin 2015 10:20, "Avi Levin" <[email protected]> a écrit :
>
> jackdanielz pushed a commit to branch master.
>
>
http://git.enlightenment.org/core/efl.git/commit/?id=b563efc52ffbc02ae33d4901326a583102975cbb
>
> commit b563efc52ffbc02ae33d4901326a583102975cbb
> Author: Avi Levin <[email protected]>
> Date: Tue Apr 21 19:00:58 2015 +0300
>
> 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.
Sorry I don't see in this patch how the old recalc callback is triggered.It
should still be triggered as it's part of the abi.
> ---
> src/lib/edje/edje_calc.c | 2 +-
> src/lib/edje/edje_object.eo | 3 +++
> 2 files changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c
> old mode 100644
> new mode 100755
> index 31cfbd0..3d75e24
> --- a/src/lib/edje/edje_calc.c
> +++ b/src/lib/edje/edje_calc.c
> @@ -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);
> diff --git a/src/lib/edje/edje_object.eo b/src/lib/edje/edje_object.eo
> old mode 100644
> new mode 100755
> index 5eecbe4..c05ef77
> --- a/src/lib/edje/edje_object.eo
> +++ b/src/lib/edje/edje_object.eo
> @@ -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. */
> + }
> }
>
> --
>
>
>
------------------------------------------------------------------------------
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel