woohyun pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=5320cca5ff5994cd14fe7ef7f85571a41c4d820b

commit 5320cca5ff5994cd14fe7ef7f85571a41c4d820b
Author: WooHyun Jung <wh0705.j...@samsung.com>
Date:   Thu Mar 20 14:14:20 2014 +0900

    elm_win: Fix wrong animation of focus highlight.
    
    When focus is changed, focus highlight animation should be started
    from the original position of focus highlight object. Not from the
    previous focused object's position.
---
 src/lib/elm_win.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index 78a5b90..ff4d8df 100644
--- a/src/lib/elm_win.c
+++ b/src/lib/elm_win.c
@@ -705,14 +705,12 @@ _elm_win_focus_highlight_anim_setup(Elm_Win_Smart_Data 
*sd,
                                     Evas_Object *obj)
 {
    Evas_Coord tx, ty, tw, th;
-   Evas_Coord w, h, px, py, pw, ph;
+   Evas_Coord px, py, pw, ph;
    Edje_Message_Int_Set *m;
-   Evas_Object *previous = sd->focus_highlight.prev.target;
    Evas_Object *target = sd->focus_highlight.cur.target;
 
-   evas_object_geometry_get(sd->obj, NULL, NULL, &w, &h);
+   evas_object_geometry_get(obj, &px, &py, &pw, &ph);
    elm_widget_focus_highlight_geometry_get(target, &tx, &ty, &tw, &th, 
EINA_TRUE);
-   elm_widget_focus_highlight_geometry_get(previous, &px, &py, &pw, &ph, 
EINA_FALSE);
    evas_object_move(obj, tx, ty);
    evas_object_resize(obj, tw, th);
 

-- 


Reply via email to