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 16:08:10 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-01 10:09:37 +0900
commitb40d8296ffe5d216c4a3458b8b6acdf5b35a4f55 (patch)
tree7366f775e0647f966ed523a4863615c2a4559d74 /src/lib/elementary/efl_ui_win.c
parent94632f8a44f5128ef6556aee7e0b3ff3fc2466af (diff)
win: Move focus_highlight_animate to widget (EO)
Similar to the previous commits. Moved for consistency. Ref T5363 Ref T5322
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/efl_ui_win.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index ddd7d61dff..6b0ad4d63d 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -6349,6 +6349,7 @@ _efl_ui_win_elm_widget_theme_apply(Eo *obj, Efl_Ui_Win_Data *sd)
6349EOLIAN static Eina_Bool 6349EOLIAN static Eina_Bool
6350_efl_ui_win_elm_widget_focus_highlight_style_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, const char *style) 6350_efl_ui_win_elm_widget_focus_highlight_style_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, const char *style)
6351{ 6351{
6352 // Do not call efl_super() here. Only Win handles this property.
6352 if (!eina_stringshare_replace(&sd->focus_highlight.style, style)) 6353 if (!eina_stringshare_replace(&sd->focus_highlight.style, style))
6353 return EINA_TRUE; 6354 return EINA_TRUE;
6354 6355
@@ -6360,12 +6361,14 @@ _efl_ui_win_elm_widget_focus_highlight_style_set(Eo *obj EINA_UNUSED, Efl_Ui_Win
6360EOLIAN static const char* 6361EOLIAN static const char*
6361_efl_ui_win_elm_widget_focus_highlight_style_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd) 6362_efl_ui_win_elm_widget_focus_highlight_style_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd)
6362{ 6363{
6364 // Do not call efl_super() here. Only Win handles this property.
6363 return sd->focus_highlight.style; 6365 return sd->focus_highlight.style;
6364} 6366}
6365 6367
6366EOLIAN static void 6368EOLIAN static void
6367_efl_ui_win_focus_highlight_animate_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, Eina_Bool animate) 6369_efl_ui_win_elm_widget_focus_highlight_animate_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, Eina_Bool animate)
6368{ 6370{
6371 // Do not call efl_super() here. Only Win handles this property.
6369 animate = !!animate; 6372 animate = !!animate;
6370 if (sd->focus_highlight.animate == animate) 6373 if (sd->focus_highlight.animate == animate)
6371 return; 6374 return;
@@ -6376,8 +6379,9 @@ _efl_ui_win_focus_highlight_animate_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd
6376} 6379}
6377 6380
6378EOLIAN static Eina_Bool 6381EOLIAN static Eina_Bool
6379_efl_ui_win_focus_highlight_animate_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd) 6382_efl_ui_win_elm_widget_focus_highlight_animate_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd)
6380{ 6383{
6384 // Do not call efl_super() here. Only Win handles this property.
6381 return sd->focus_highlight.animate; 6385 return sd->focus_highlight.animate;
6382} 6386}
6383 6387
@@ -8192,6 +8196,18 @@ elm_win_focus_highlight_enabled_set(Efl_Ui_Win *obj, Eina_Bool enabled)
8192 elm_obj_widget_focus_highlight_enabled_set(obj, enabled); 8196 elm_obj_widget_focus_highlight_enabled_set(obj, enabled);
8193} 8197}
8194 8198
8199EAPI void
8200elm_win_focus_highlight_animate_set(Elm_Win *obj, Eina_Bool animate)
8201{
8202 elm_obj_widget_focus_highlight_animate_set(obj, animate);
8203}
8204
8205EAPI Eina_Bool
8206elm_win_focus_highlight_animate_get(const Elm_Win *obj)
8207{
8208 return elm_obj_widget_focus_highlight_animate_get(obj);
8209}
8210
8195// deprecated 8211// deprecated
8196 8212
8197EAPI void 8213EAPI void