elementary/focus - update focus highlight when theme is changed.

This commit is contained in:
ChunEon Park 2013-10-03 23:57:08 +09:00
parent a4fb4efcd7
commit f19655ca3d
3 changed files with 13 additions and 0 deletions

View File

@ -1668,3 +1668,6 @@
2013-10-02 Ryuan Choi (ryuan)
* fileselector: Add "activated" smart callback. It can be used to execute
a file activated by double-clicking or pressing Enter key.
2013-10-03 ChunEon Park (Hermet)
* Focus: update the focus highlight style when theme is changed.

View File

@ -308,6 +308,7 @@ Removals:
* Popup: Fix the corrupted internal widget tree that caused elm_theme_set() doesn't work correctly.
* Mapbuf: Ensure that content size calculation is correctly finished because the mapbuf is willing to block the size calculation forcely.
* Gesture layer: Fix gesture layer with "pointer" events.
* Focus: update the focus highlight style when theme is changed.
Changes since Elementary 1.0.0:
-------------------------

View File

@ -5207,6 +5207,14 @@ elm_win_focus_highlight_style_set(Evas_Object *obj,
eo_do(obj, elm_obj_win_focus_highlight_style_set(style));
}
static void
_elm_win_smart_theme(Eo *obj EINA_UNUSED, void *_pd, va_list *list EINA_UNUSED)
{
Elm_Win_Smart_Data *sd = _pd;
sd->focus_highlight.theme_changed = EINA_TRUE;
_elm_win_focus_highlight_reconfigure_job_start(sd);
}
static void
_focus_highlight_style_set(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
{
@ -5512,6 +5520,7 @@ _class_constructor(Eo_Class *klass)
EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_NEXT), _elm_win_smart_focus_next),
EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_DIRECTION_MANAGER_IS), _elm_win_smart_focus_direction_manager_is),
EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_DIRECTION), _elm_win_smart_focus_direction),
EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_THEME), _elm_win_smart_theme),
EO_OP_FUNC(ELM_OBJ_WIN_ID(ELM_OBJ_WIN_SUB_ID_WIN_CONSTRUCTOR), _win_constructor),
EO_OP_FUNC(ELM_OBJ_WIN_ID(ELM_OBJ_WIN_SUB_ID_RESIZE_OBJECT_ADD), _resize_object_add),