aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung@gmail.com>2013-08-15 22:42:59 +0900
committerDaniel Juyung Seo <seojuyung@gmail.com>2013-08-15 22:42:59 +0900
commit50939d8f258e819d1ff38651cd9be1e2bc3dee39 (patch)
treec6be3199bf6bfabfec18985ddcc7294c19effe5c /legacy/elementary/src/lib/elm_win.c
parentelm_win.c: formatting fix before working on this file. (diff)
downloadefl-50939d8f258e819d1ff38651cd9be1e2bc3dee39.tar.gz
elm_win.c: focus animation refactoring.
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index 3abcd2612f..393f0377c5 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/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