From f9ec18f5865476384f529ec6e741dbe4ed524be8 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Fri, 7 Nov 2014 02:20:18 +0900 Subject: [PATCH] genlist: Remove unnecessary callbacks when item loop is disabled. @fix --- legacy/elementary/src/lib/elm_genlist.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/legacy/elementary/src/lib/elm_genlist.c b/legacy/elementary/src/lib/elm_genlist.c index 061e0a4c2f..7ad7faf57a 100644 --- a/legacy/elementary/src/lib/elm_genlist.c +++ b/legacy/elementary/src/lib/elm_genlist.c @@ -7590,6 +7590,13 @@ _elm_genlist_elm_widget_item_loop_enabled_set(Eo *obj EINA_UNUSED, Elm_Genlist_D _elm_widget_focus_highlight_signal_callback_add(obj, "elm,focus,move,up,end", "elm", _elm_genlist_focus_highlight_move_up_end_cb, obj); } + else + { + _elm_widget_focus_highlight_signal_callback_del(obj, "elm,focus,move,down,end", + "elm", _elm_genlist_focus_highlight_move_down_end_cb); + _elm_widget_focus_highlight_signal_callback_del(obj, "elm,focus,move,up,end", + "elm", _elm_genlist_focus_highlight_move_up_end_cb); + } sd->item_loop_enable = !!enable; }