summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2013-10-03 23:57:08 +0900
committerChunEon Park <hermet@hermet.pe.kr>2013-10-03 23:57:08 +0900
commit99ab56d5ae0bbd33cb782bd4867590073561c567 (patch)
treea42f14cfd2758dd828c2ec68d8643e2d987d90f1
parent4ec1b6aa7a728bd5a7ea858ea37cce777871168a (diff)
downloadelementary-99ab56d5ae0bbd33cb782bd4867590073561c567.tar.gz
elementary/focus - update focus highlight when theme is changed.
-rw-r--r--ChangeLog3
-rw-r--r--NEWS1
-rw-r--r--src/lib/elm_win.c9
3 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 101772222..8a070fc21 100644
--- a/ChangeLog
+++ b/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/NEWS b/NEWS
index 417f1f8e6..635574358 100644
--- a/NEWS
+++ b/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/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),