summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-11-07 02:20:18 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-11-07 02:20:21 +0900
commitbe4dbdd0bf8306122ab6ed39fb4237e39050b4f3 (patch)
tree5ed6125667cdd71ee8fa1058dd19d71c3baf46b1 /src/lib
parentcfa792d1024abba70a697abace080598497778c0 (diff)
genlist: Remove unnecessary callbacks when item loop is disabled.
@fix
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elm_genlist.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 061e0a4c2..7ad7faf57 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -7590,6 +7590,13 @@ _elm_genlist_elm_widget_item_loop_enabled_set(Eo *obj EINA_UNUSED, Elm_Genlist_D
7590 _elm_widget_focus_highlight_signal_callback_add(obj, "elm,focus,move,up,end", 7590 _elm_widget_focus_highlight_signal_callback_add(obj, "elm,focus,move,up,end",
7591 "elm", _elm_genlist_focus_highlight_move_up_end_cb, obj); 7591 "elm", _elm_genlist_focus_highlight_move_up_end_cb, obj);
7592 } 7592 }
7593 else
7594 {
7595 _elm_widget_focus_highlight_signal_callback_del(obj, "elm,focus,move,down,end",
7596 "elm", _elm_genlist_focus_highlight_move_down_end_cb);
7597 _elm_widget_focus_highlight_signal_callback_del(obj, "elm,focus,move,up,end",
7598 "elm", _elm_genlist_focus_highlight_move_up_end_cb);
7599 }
7593 7600
7594 sd->item_loop_enable = !!enable; 7601 sd->item_loop_enable = !!enable;
7595} 7602}