seoz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=be4dbdd0bf8306122ab6ed39fb4237e39050b4f3

commit be4dbdd0bf8306122ab6ed39fb4237e39050b4f3
Author: Daniel Juyung Seo <seojuyu...@gmail.com>
Date:   Fri Nov 7 02:20:18 2014 +0900

    genlist: Remove unnecessary callbacks when item loop is disabled.
    
    @fix
---
 src/lib/elm_genlist.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 061e0a4..7ad7faf 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
          _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;
 }

-- 


Reply via email to