diff options
author | Jee-Yong Um <conr2d@gmail.com> | 2015-06-25 13:35:44 +0900 |
---|---|---|
committer | ChunEon Park <hermet@hermet.pe.kr> | 2015-06-25 13:38:25 +0900 |
commit | 4baea669566086c584dd040d5dd62a01d40cb312 (patch) | |
tree | 52af8a684765722454e592b8fec8b73fc652d219 | |
parent | 6483dc3ce91f94dd147bda1080b0e923d16f4653 (diff) |
edje_embryo: correct type mismatching in get_geometry() method
Summary:
get_geometry() method calls edje_object_part_geometry_get() internally,
and the type of its arguments is Evas_Coord. (typedef'ed integer)
However, comment says that method require Float type as its arguemnts,
and get_geometry() initializes Evas_Coord variables as 0.0.
This patch corrects type mismatching and comment.
@fix
Reviewers: Hermet
Subscribers: cedric, Hermet
Differential Revision: https://phab.enlightenment.org/D2754
-rw-r--r-- | src/lib/edje/edje_embryo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/edje/edje_embryo.c b/src/lib/edje/edje_embryo.c index e05cb0cf0a..2977a544d4 100644 --- a/src/lib/edje/edje_embryo.c +++ b/src/lib/edje/edje_embryo.c | |||
@@ -94,7 +94,7 @@ | |||
94 | * set_drag_step(part_id, Float:dx, Float:dy) | 94 | * set_drag_step(part_id, Float:dx, Float:dy) |
95 | * get_drag_page(part_id, &Float:dx, &Float:&dy) | 95 | * get_drag_page(part_id, &Float:dx, &Float:&dy) |
96 | * set_drag_page(part_id, Float:dx, Float:dy) | 96 | * set_drag_page(part_id, Float:dx, Float:dy) |
97 | * get_geometry(part_id, &Float:x, &Float:y, &Float:w, &Float:h) | 97 | * get_geometry(part_id, &x, &y, &w, &h) |
98 | * get_mouse(&x, &y) | 98 | * get_mouse(&x, &y) |
99 | * stop_program(program_id) | 99 | * stop_program(program_id) |
100 | * stop_programs_on(part_id) | 100 | * stop_programs_on(part_id) |
@@ -1715,7 +1715,7 @@ _edje_embryo_fn_get_geometry(Embryo_Program *ep, Embryo_Cell *params) | |||
1715 | Edje *ed; | 1715 | Edje *ed; |
1716 | int part_id = 0; | 1716 | int part_id = 0; |
1717 | Edje_Real_Part *rp; | 1717 | Edje_Real_Part *rp; |
1718 | Evas_Coord x = 0.0, y = 0.0, w = 0.0, h = 0.0; | 1718 | Evas_Coord x = 0, y = 0, w = 0, h = 0; |
1719 | 1719 | ||
1720 | CHKPARAM(5); | 1720 | CHKPARAM(5); |
1721 | ed = embryo_program_data_get(ep); | 1721 | ed = embryo_program_data_get(ep); |