summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_list.c
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-02-27 14:00:39 -0500
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-02-27 20:19:25 +0100
commitb704db8f0780868c1a6f039c2e09e291f3387308 (patch)
treefa01c29ea711ee2187ab5d229ade70c94a6fb0a4 /src/lib/elementary/elm_list.c
parent0b152734ba13d46155b2c1dcc98cd13c79fc804c (diff)
downloadefl-b704db8f0780868c1a6f039c2e09e291f3387308.tar.gz
efl_ui_widget: move focus_highlight to the window
summary_: the widget implementation just redirected calls from efl_ui_widget to efl_ui_win. Which makes the properties unncessesary on the widget. This commit moves them now to the window. The legacy implementation of the window can now go away, as this is taken care of by eolian directly. ref T7553 Depends on D8017 Reviewers: woohyun Reviewed By: woohyun Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7553 Reviewed-by: WooHyun Jung <woohyun0705@gmail.com> Differential Revision: https://phab.enlightenment.org/D8025
Diffstat (limited to 'src/lib/elementary/elm_list.c')
-rw-r--r--src/lib/elementary/elm_list.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_list.c b/src/lib/elementary/elm_list.c
index ff72abd991..b678bc1a34 100644
--- a/src/lib/elementary/elm_list.c
+++ b/src/lib/elementary/elm_list.c
@@ -1147,6 +1147,7 @@ _elm_list_item_focused(Elm_Object_Item *eo_it)
{
ELM_LIST_ITEM_DATA_GET(eo_it, it);
ELM_LIST_DATA_GET_FROM_ITEM(it, sd);
+ Evas_Object *win = elm_widget_top_get(WIDGET(it));
Evas_Coord x, y, w, h, sx, sy, sw, sh;
const char *focus_raise;
@@ -1170,7 +1171,7 @@ _elm_list_item_focused(Elm_Object_Item *eo_it)
}
}
sd->focused_item = eo_it;
- if (elm_widget_focus_highlight_enabled_get(WIDGET(it)) || _elm_config->win_auto_focus_enable)
+ if (elm_win_focus_highlight_enabled_get(win) || _elm_config->win_auto_focus_enable)
{
edje_object_signal_emit
(VIEW(it), "elm,state,focused", "elm");
@@ -1189,6 +1190,7 @@ _elm_list_item_unfocused(Elm_Object_Item *eo_it)
{
ELM_LIST_ITEM_DATA_GET(eo_it, it);
Evas_Object *obj = WIDGET(it);
+ Evas_Object *win = elm_widget_top_get(obj);
ELM_LIST_DATA_GET(obj, sd);
if ((!sd) || (!sd->focused_item) ||
@@ -1198,7 +1200,7 @@ _elm_list_item_unfocused(Elm_Object_Item *eo_it)
if (_is_no_select(it))
return;
- if (elm_widget_focus_highlight_enabled_get(obj) || _elm_config->win_auto_focus_enable)
+ if (elm_win_focus_highlight_enabled_get(win) || _elm_config->win_auto_focus_enable)
{
ELM_LIST_ITEM_DATA_GET(sd->focused_item, focus_it);
edje_object_signal_emit