diff options
author | Avi Levin <avi.levin@samsung.com> | 2015-04-21 19:00:58 +0300 |
---|---|---|
committer | Daniel Zaoui <daniel.zaoui@samsung.com> | 2015-06-07 09:55:41 +0300 |
commit | b563efc52ffbc02ae33d4901326a583102975cbb (patch) | |
tree | 5c2712ae69289ef662a7a9bcae003820d242f5b3 /src | |
parent | 50a37e72fc6ba7f64000082917f111a26447257a (diff) |
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.
Diffstat (limited to 'src')
-rwxr-xr-x[-rw-r--r--] | src/lib/edje/edje_calc.c | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | src/lib/edje/edje_object.eo | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c index 31cfbd042d..3d75e24eda 100644..100755 --- a/src/lib/edje/edje_calc.c +++ b/src/lib/edje/edje_calc.c | |||
@@ -742,7 +742,7 @@ _edje_recalc_do(Edje *ed) | |||
742 | if (!ed->calc_only) | 742 | if (!ed->calc_only) |
743 | { | 743 | { |
744 | if (ed->recalc_call) | 744 | if (ed->recalc_call) |
745 | evas_object_smart_callback_call(ed->obj, "recalc", NULL); | 745 | eo_do(ed->obj, eo_event_callback_call(EDJE_OBJECT_EVENT_RECALC, NULL)); |
746 | } | 746 | } |
747 | else | 747 | else |
748 | evas_object_smart_need_recalculate_set(ed->obj, need_calc); | 748 | 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 index 5eecbe445c..c05ef7731e 100644..100755 --- 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) | |||
2399 | Efl.File.mmap.set; | 2399 | Efl.File.mmap.set; |
2400 | Efl.File.mmap.get; | 2400 | Efl.File.mmap.get; |
2401 | } | 2401 | } |
2402 | events { | ||
2403 | recalc; /*@ Edje re-calculated the object. */ | ||
2404 | } | ||
2402 | } | 2405 | } |