evas_object_event_callback_del_full
(VIEW(it), EVAS_CALLBACK_MOUSE_MOVE, _item_mouse_move_cb, it);
+ if (GG_IT(it)->wsd->focused == (Elm_Object_Item *)it)
+ GG_IT(it)->wsd->focused = NULL;
+
GG_IT(it)->wsd->items = eina_inlist_remove
(GG_IT(it)->wsd->items, EINA_INLIST_GET(it));
if (sd->last_selected_item == (Elm_Object_Item *)it)
sd->last_selected_item = NULL;
+ if (sd->focused == (Elm_Object_Item *)it) sd->focused = NULL;
+
_item_event_del(it);
sd->items = eina_inlist_remove(sd->items, EINA_INLIST_GET(it));
{
Elm_Genlist_Smart_Data *sd = GL_IT(it)->wsd;
- if (sd->focused == it) sd->focused = NULL;
elm_widget_item_pre_notify_del(it);
if (it->itc->func.del)
it->itc->func.del((void *)it->base.data, WIDGET(it));
sd->pending_del_items = eina_list_append(sd->pending_del_items, it);
}
- if (sd->focused == it) sd->focused = NULL;
elm_widget_item_pre_notify_del(it);
if (it->itc->func.del)
it->itc->func.del((void *)it->base.data, WIDGET(it));