diff options
author | ChunEon Park <hermet@hermet.pe.kr> | 2013-10-03 23:57:08 +0900 |
---|---|---|
committer | ChunEon Park <hermet@hermet.pe.kr> | 2013-10-03 23:57:08 +0900 |
commit | 99ab56d5ae0bbd33cb782bd4867590073561c567 (patch) | |
tree | a42f14cfd2758dd828c2ec68d8643e2d987d90f1 | |
parent | 4ec1b6aa7a728bd5a7ea858ea37cce777871168a (diff) | |
download | elementary-99ab56d5ae0bbd33cb782bd4867590073561c567.tar.gz |
elementary/focus - update focus highlight when theme is changed.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | src/lib/elm_win.c | 9 |
3 files changed, 13 insertions, 0 deletions
@@ -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. @@ -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: ------------------------- diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c index 3fbfd825f..5dfe0f6b0 100644 --- a/src/lib/elm_win.c +++ b/src/lib/elm_win.c @@ -5208,6 +5208,14 @@ elm_win_focus_highlight_style_set(Evas_Object *obj, } 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) { const char *style = va_arg(*list, const char *); @@ -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), |