summaryrefslogtreecommitdiff
path: root/src/lib/edje/edje_embryo.c
diff options
context:
space:
mode:
authorJee-Yong Um <jc9.um@samsung.com>2017-02-07 15:08:19 -0800
committerCedric BAIL <cedric@osg.samsung.com>2017-02-07 15:14:54 -0800
commit57c14f1c55fc6fa9338c0291db66307bfeca305b (patch)
tree58c845f3e8ed5f19990c62b22ffa4990cd74e897 /src/lib/edje/edje_embryo.c
parent9fa4a5fb6dc5b616e67a6b47042b62c9dfcab167 (diff)
edje: fix cached edje modification issue
Summary: _edje_part_***_set/get (for mouse_events, repeat_events, ignore_flags, mask_flags) overwrite cached edje value. These behaviors affect all edje object added after these changes, and result in not intended. @fix Reviewers: jpeg, cedric Subscribers: akanad, woohyun Differential Revision: https://phab.enlightenment.org/D4362 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/edje/edje_embryo.c')
-rw-r--r--src/lib/edje/edje_embryo.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/edje/edje_embryo.c b/src/lib/edje/edje_embryo.c
index c7c70f750e..e6963b6fcb 100644
--- a/src/lib/edje/edje_embryo.c
+++ b/src/lib/edje/edje_embryo.c
@@ -3572,7 +3572,7 @@ _edje_embryo_fn_set_mouse_events(Embryo_Program *ep, Embryo_Cell *params)
3572 rp = ed->table_parts[part_id % ed->table_parts_size]; 3572 rp = ed->table_parts[part_id % ed->table_parts_size];
3573 3573
3574 if (rp) 3574 if (rp)
3575 _edje_part_mouse_events_set(ed, rp, params[2]); 3575 _edje_real_part_mouse_events_set(ed, rp, params[2]);
3576 3576
3577 return 0; 3577 return 0;
3578} 3578}
@@ -3594,7 +3594,7 @@ _edje_embryo_fn_get_mouse_events(Embryo_Program *ep, Embryo_Cell *params)
3594 rp = ed->table_parts[part_id % ed->table_parts_size]; 3594 rp = ed->table_parts[part_id % ed->table_parts_size];
3595 3595
3596 if (rp) 3596 if (rp)
3597 return (Embryo_Cell)_edje_var_int_get(ed, (int)_edje_part_mouse_events_get(ed, rp)); 3597 return (Embryo_Cell)_edje_var_int_get(ed, (int)_edje_real_part_mouse_events_get(ed, rp));
3598 3598
3599 return 0; 3599 return 0;
3600 3600
@@ -3617,7 +3617,7 @@ _edje_embryo_fn_set_repeat_events(Embryo_Program *ep, Embryo_Cell *params)
3617 rp = ed->table_parts[part_id % ed->table_parts_size]; 3617 rp = ed->table_parts[part_id % ed->table_parts_size];
3618 3618
3619 if (rp) 3619 if (rp)
3620 _edje_part_repeat_events_set(ed, rp, params[2]); 3620 _edje_real_part_repeat_events_set(ed, rp, params[2]);
3621 3621
3622 return 0; 3622 return 0;
3623} 3623}
@@ -3639,7 +3639,7 @@ _edje_embryo_fn_get_repeat_events(Embryo_Program *ep, Embryo_Cell *params)
3639 rp = ed->table_parts[part_id % ed->table_parts_size]; 3639 rp = ed->table_parts[part_id % ed->table_parts_size];
3640 3640
3641 if (rp) 3641 if (rp)
3642 return (Embryo_Cell)_edje_var_int_get(ed, (int)_edje_part_repeat_events_get(ed, rp)); 3642 return (Embryo_Cell)_edje_var_int_get(ed, (int)_edje_real_part_repeat_events_get(ed, rp));
3643 3643
3644 return 0; 3644 return 0;
3645 3645
@@ -3662,7 +3662,7 @@ _edje_embryo_fn_set_ignore_flags(Embryo_Program *ep, Embryo_Cell *params)
3662 rp = ed->table_parts[part_id % ed->table_parts_size]; 3662 rp = ed->table_parts[part_id % ed->table_parts_size];
3663 3663
3664 if (rp) 3664 if (rp)
3665 _edje_part_ignore_flags_set(ed, rp, params[2]); 3665 _edje_real_part_ignore_flags_set(ed, rp, params[2]);
3666 3666
3667 return 0; 3667 return 0;
3668} 3668}
@@ -3684,7 +3684,7 @@ _edje_embryo_fn_get_ignore_flags(Embryo_Program *ep, Embryo_Cell *params)
3684 rp = ed->table_parts[part_id % ed->table_parts_size]; 3684 rp = ed->table_parts[part_id % ed->table_parts_size];
3685 3685
3686 if (rp) 3686 if (rp)
3687 return (Embryo_Cell)_edje_var_int_get(ed, (int)_edje_part_ignore_flags_get(ed, rp)); 3687 return (Embryo_Cell)_edje_var_int_get(ed, (int)_edje_real_part_ignore_flags_get(ed, rp));
3688 3688
3689 return 0; 3689 return 0;
3690 3690
@@ -3707,7 +3707,7 @@ _edje_embryo_fn_set_mask_flags(Embryo_Program *ep, Embryo_Cell *params)
3707 rp = ed->table_parts[part_id % ed->table_parts_size]; 3707 rp = ed->table_parts[part_id % ed->table_parts_size];
3708 3708
3709 if (rp) 3709 if (rp)
3710 _edje_part_mask_flags_set(ed, rp, params[2]); 3710 _edje_real_part_mask_flags_set(ed, rp, params[2]);
3711 3711
3712 return 0; 3712 return 0;
3713} 3713}
@@ -3729,7 +3729,7 @@ _edje_embryo_fn_get_mask_flags(Embryo_Program *ep, Embryo_Cell *params)
3729 rp = ed->table_parts[part_id % ed->table_parts_size]; 3729 rp = ed->table_parts[part_id % ed->table_parts_size];
3730 3730
3731 if (rp) 3731 if (rp)
3732 return (Embryo_Cell)_edje_var_int_get(ed, (int)_edje_part_mask_flags_get(ed, rp)); 3732 return (Embryo_Cell)_edje_var_int_get(ed, (int)_edje_real_part_mask_flags_get(ed, rp));
3733 3733
3734 return 0; 3734 return 0;
3735 3735