From f19655ca3dc5a8bcd2919877f634dbebc944fd0e Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Thu, 3 Oct 2013 23:57:08 +0900 Subject: [PATCH] elementary/focus - update focus highlight when theme is changed. --- legacy/elementary/ChangeLog | 3 +++ legacy/elementary/NEWS | 1 + legacy/elementary/src/lib/elm_win.c | 9 +++++++++ 3 files changed, 13 insertions(+) diff --git a/legacy/elementary/ChangeLog b/legacy/elementary/ChangeLog index 1017722225..8a070fc215 100644 --- a/legacy/elementary/ChangeLog +++ b/legacy/elementary/ChangeLog @@ -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. diff --git a/legacy/elementary/NEWS b/legacy/elementary/NEWS index 417f1f8e68..6355743582 100644 --- a/legacy/elementary/NEWS +++ b/legacy/elementary/NEWS @@ -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/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c index 3fbfd825fc..5dfe0f6b07 100644 --- a/legacy/elementary/src/lib/elm_win.c +++ b/legacy/elementary/src/lib/elm_win.c @@ -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),