summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-31 15:42:52 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-01 10:09:37 +0900
commit0972c49438f4a8b39c2e38146642e69442afa471 (patch)
tree44dd80411bb744702517c6e6ef4d35375de325d5 /src/lib/elementary/efl_ui_win.c
parentc0d7ea4af0e8f4b46081e8652ec2a92773629c21 (diff)
win: Merge focus_highlight_style with widget (EO)
Note: elm_test "Focus Style" can be used to test this API. The test case is a bit broken (overly complex EDC?) but if you're patient you can see the difference between "glow" and "glow_effect". Ref T5363 Ref T5322
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/efl_ui_win.c24
1 files changed, 20 insertions, 4 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 8124572c63..a19456bb31 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -6344,16 +6344,19 @@ _efl_ui_win_elm_widget_theme_apply(Eo *obj, Efl_Ui_Win_Data *sd)
6344 return int_ret; 6344 return int_ret;
6345} 6345}
6346 6346
6347EOLIAN static void 6347EOLIAN static Eina_Bool
6348_efl_ui_win_focus_highlight_style_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, const char *style) 6348_efl_ui_win_elm_widget_focus_highlight_style_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, const char *style)
6349{ 6349{
6350 eina_stringshare_replace(&sd->focus_highlight.style, style); 6350 if (!eina_stringshare_replace(&sd->focus_highlight.style, style))
6351 return EINA_TRUE;
6352
6351 sd->focus_highlight.theme_changed = EINA_TRUE; 6353 sd->focus_highlight.theme_changed = EINA_TRUE;
6352 _elm_win_focus_highlight_reconfigure_job_start(sd); 6354 _elm_win_focus_highlight_reconfigure_job_start(sd);
6355 return EINA_TRUE;
6353} 6356}
6354 6357
6355EOLIAN static const char* 6358EOLIAN static const char*
6356_efl_ui_win_focus_highlight_style_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd) 6359_efl_ui_win_elm_widget_focus_highlight_style_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd)
6357{ 6360{
6358 return sd->focus_highlight.style; 6361 return sd->focus_highlight.style;
6359} 6362}
@@ -8163,6 +8166,19 @@ elm_win_focus_get(const Efl_Ui_Win *obj)
8163 return elm_obj_widget_focus_get(obj); 8166 return elm_obj_widget_focus_get(obj);
8164} 8167}
8165 8168
8169EAPI void
8170elm_win_focus_highlight_style_set(Elm_Win *obj, const char *style)
8171{
8172 elm_widget_focus_highlight_style_set(obj, style);
8173}
8174
8175EAPI const char *
8176elm_win_focus_highlight_style_get(const Elm_Win *obj)
8177{
8178 return elm_widget_focus_highlight_style_get(obj);
8179}
8180
8181
8166// deprecated 8182// deprecated
8167 8183
8168EAPI void 8184EAPI void