{
Evas_Object *target;
Eina_Bool visible : 1;
- Eina_Bool handled : 1;
+ Eina_Bool in_theme: 1; /*<< focus highlight is handled by theme.
+ this is set true if edc data item "focus_highlight" is set to "on" during focus in callback. */
} cur, prev;
const char *style;
(!sd->focus_highlight.theme_changed))
return;
- if ((previous) && (sd->focus_highlight.prev.handled))
+ if ((previous) && (sd->focus_highlight.prev.in_theme))
elm_widget_signal_emit
(previous, "elm,action,focus_highlight,hide", "elm");
if (!target)
common_visible = EINA_FALSE;
- else if (sd->focus_highlight.cur.handled)
+ else if (sd->focus_highlight.cur.in_theme)
{
common_visible = EINA_FALSE;
if (sd->focus_highlight.cur.visible)
if (sig)
elm_widget_signal_emit(target, sig, "elm");
- if ((!target) || (!common_visible) || (sd->focus_highlight.cur.handled))
+ if ((!target) || (!common_visible) || (sd->focus_highlight.cur.in_theme))
goto the_end;
if (sd->focus_highlight.theme_changed)
}
if ((sd->focus_highlight.animate_supported) && (previous) &&
- (!sd->focus_highlight.prev.handled))
+ (!sd->focus_highlight.prev.in_theme))
_elm_win_focus_highlight_anim_setup(sd, fobj);
else
_elm_win_focus_highlight_simple_setup(sd, fobj);
target = _elm_win_focus_target_get(obj);
sd->focus_highlight.cur.target = target;
if (target && elm_widget_highlight_in_theme_get(target))
- sd->focus_highlight.cur.handled = EINA_TRUE;
+ sd->focus_highlight.cur.in_theme = EINA_TRUE;
else
_elm_win_focus_target_callbacks_add(sd);
if (!sd->focus_highlight.cur.target)
return;
- if (!sd->focus_highlight.cur.handled)
+ if (!sd->focus_highlight.cur.in_theme)
_elm_win_focus_target_callbacks_del(sd);
sd->focus_highlight.cur.target = NULL;
- sd->focus_highlight.cur.handled = EINA_FALSE;
+ sd->focus_highlight.cur.in_theme = EINA_FALSE;
_elm_win_focus_highlight_reconfigure_job_start(sd);
}