forked from enlightenment/efl
oops! item cache... has a bug. didnt actually delete old cb's.. was
edeleting from null! fix! SVN revision: 54358
This commit is contained in:
parent
78cc8ef853
commit
2fae4544b9
|
@ -1236,18 +1236,29 @@ _item_cache_add(Elm_Genlist_Item *it)
|
||||||
itc->selected = it->selected;
|
itc->selected = it->selected;
|
||||||
itc->disabled = it->disabled;
|
itc->disabled = it->disabled;
|
||||||
itc->expanded = it->expanded;
|
itc->expanded = it->expanded;
|
||||||
edje_object_signal_callback_del(it->base.view, "elm,action,expand,toggle",
|
if (it->long_timer)
|
||||||
"elm", _signal_expand_toggle);
|
{
|
||||||
edje_object_signal_callback_del(it->base.view, "elm,action,expand", "elm",
|
ecore_timer_del(it->long_timer);
|
||||||
_signal_expand);
|
it->long_timer = NULL;
|
||||||
edje_object_signal_callback_del(it->base.view, "elm,action,contract",
|
}
|
||||||
"elm", _signal_contract);
|
if (it->swipe_timer)
|
||||||
evas_object_event_callback_del(it->base.view, EVAS_CALLBACK_MOUSE_DOWN,
|
{
|
||||||
_mouse_down);
|
ecore_timer_del(it->swipe_timer);
|
||||||
evas_object_event_callback_del(it->base.view, EVAS_CALLBACK_MOUSE_UP,
|
it->swipe_timer = NULL;
|
||||||
_mouse_up);
|
}
|
||||||
evas_object_event_callback_del(it->base.view, EVAS_CALLBACK_MOUSE_MOVE,
|
// FIXME: other callbacks? GGG
|
||||||
_mouse_move);
|
edje_object_signal_callback_del_full(itc->base_view, "elm,action,expand,toggle",
|
||||||
|
"elm", _signal_expand_toggle, it);
|
||||||
|
edje_object_signal_callback_del_full(itc->base_view, "elm,action,expand", "elm",
|
||||||
|
_signal_expand, it);
|
||||||
|
edje_object_signal_callback_del_full(itc->base_view, "elm,action,contract",
|
||||||
|
"elm", _signal_contract, it);
|
||||||
|
evas_object_event_callback_del_full(itc->base_view, EVAS_CALLBACK_MOUSE_DOWN,
|
||||||
|
_mouse_down, it);
|
||||||
|
evas_object_event_callback_del_full(itc->base_view, EVAS_CALLBACK_MOUSE_UP,
|
||||||
|
_mouse_up, it);
|
||||||
|
evas_object_event_callback_del_full(itc->base_view, EVAS_CALLBACK_MOUSE_MOVE,
|
||||||
|
_mouse_move, it);
|
||||||
_item_cache_clean(it->wd);
|
_item_cache_clean(it->wd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue