summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJee-Yong Um <conr2d@gmail.com>2015-06-25 13:35:44 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-06-25 13:38:25 +0900
commit4baea669566086c584dd040d5dd62a01d40cb312 (patch)
tree52af8a684765722454e592b8fec8b73fc652d219 /src
parent6483dc3ce91f94dd147bda1080b0e923d16f4653 (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
Diffstat (limited to 'src')
-rw-r--r--src/lib/edje/edje_embryo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/edje/edje_embryo.c b/src/lib/edje/edje_embryo.c
index e05cb0c..2977a54 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);