seoz pushed a commit to branch master.

commit 36010bb55e51af8c36816bc6dfb90edd3904d6bc
Author: Daniel Juyung Seo <[email protected]>
Date:   Thu Aug 15 22:42:59 2013 +0900

    elm_win.c: focus animation refactoring.
---
 src/lib/elm_win.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index 3abcd26..393f037 100644
--- a/src/lib/elm_win.c
+++ b/src/lib/elm_win.c
@@ -784,6 +784,8 @@ _elm_win_focus_highlight_reconfigure(Elm_Win_Smart_Data *sd)
              str = edje_object_data_get(sd->focus_highlight.fobj, "animate");
              sd->focus_highlight.animate_supported = ((str) && (!strcmp(str, 
"on")));
           }
+        else
+          sd->focus_highlight.animate_supported = EINA_FALSE;
      }
 
    if ((sd->focus_highlight.animate_supported) && (previous) &&
@@ -5119,20 +5121,14 @@ _focus_highlight_animate_set(Eo *obj EINA_UNUSED, void 
*_pd, va_list *list)
 {
    Eina_Bool animate = va_arg(*list, int);
    Elm_Win_Smart_Data *sd = _pd;
-   const char *str;
 
    animate = !!animate;
    if (sd->focus_highlight.animate == animate)
      return;
 
    sd->focus_highlight.animate = animate;
-   if (animate)
-     {
-        str = edje_object_data_get(sd->focus_highlight.fobj, "animate");
-        sd->focus_highlight.animate_supported = ((str) && (!strcmp(str, 
"on")));
-     }
-   else
-     sd->focus_highlight.animate_supported = EINA_FALSE;
+   sd->focus_highlight.theme_changed = EINA_TRUE;
+   _elm_win_focus_highlight_reconfigure_job_start(sd);
 }
 
 EAPI Eina_Bool

-- 

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk

Reply via email to