diff options
author | Daniel Juyung Seo <seojuyung2@gmail.com> | 2014-03-04 00:32:05 +0900 |
---|---|---|
committer | Daniel Juyung Seo <seojuyung2@gmail.com> | 2014-03-04 00:33:13 +0900 |
commit | e5b05a9d1176c1a14be226fb80f8370431555728 (patch) | |
tree | 04b5599aa9317b5c1ac5008589145752e15da6c1 | |
parent | b3c7cdd32f7451c388624ada98185b4b9ec9de9e (diff) | |
download | elementary-e5b05a9d1176c1a14be226fb80f8370431555728.tar.gz |
list: Do not call unnecessary external API.
We already know the internals so make it optimized by using internal
data.
-rw-r--r-- | src/lib/elm_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c index d1018c9ad..d18d669e5 100644 --- a/src/lib/elm_list.c +++ b/src/lib/elm_list.c @@ -1062,7 +1062,7 @@ _elm_list_smart_on_focus(Eo *obj, void *_pd, va_list *list) else if (sd->last_selected_item) _elm_list_item_focused((Elm_List_Item *)sd->last_selected_item); else - _elm_list_item_focused((Elm_List_Item *)elm_list_first_item_get(obj)); + _elm_list_item_focused((Elm_List_Item *)eina_list_data_get(sd->items)); _elm_widget_focus_highlight_start(obj); } else |