hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=4baea669566086c584dd040d5dd62a01d40cb312

commit 4baea669566086c584dd040d5dd62a01d40cb312
Author: Jee-Yong Um <con...@gmail.com>
Date:   Thu Jun 25 13:35:44 2015 +0900

    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
---
 src/lib/edje/edje_embryo.c | 4 ++--
 1 file 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 @@
  * set_drag_step(part_id, Float:dx, Float:dy)
  * get_drag_page(part_id, &Float:dx, &Float:&dy)
  * set_drag_page(part_id, Float:dx, Float:dy)
- * get_geometry(part_id, &Float:x, &Float:y, &Float:w, &Float:h)
+ * get_geometry(part_id, &x, &y, &w, &h)
  * get_mouse(&x, &y)
  * stop_program(program_id)
  * stop_programs_on(part_id)
@@ -1715,7 +1715,7 @@ _edje_embryo_fn_get_geometry(Embryo_Program *ep, 
Embryo_Cell *params)
    Edje *ed;
    int part_id = 0;
    Edje_Real_Part *rp;
-   Evas_Coord x = 0.0, y = 0.0, w = 0.0, h = 0.0;
+   Evas_Coord x = 0, y = 0, w = 0, h = 0;
 
    CHKPARAM(5);
    ed = embryo_program_data_get(ep);

-- 


Reply via email to