EAPI Eina_Inlist *elm_naviframe_items_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
/**
- * @brief Set the event enabled when pushing/popping items
+ * @brief Set the event enabled when pushing/popping items
*
- * If @c enabled is EINA_TRUE, the contents of the naviframe item will
+ * If @c enabled is EINA_TRUE, the contents of the naviframe item will
* receives events from mouse and keyboard during view changing such as
* item push/pop.
*
* @param obj The naviframe object
- * @param enabled Events are received when enabled is @c EINA_TRUE, and
+ * @param enabled Events are received when enabled is @c EINA_TRUE, and
* ignored otherwise.
*
* @warning Events will be blocked by calling evas_object_freeze_events_set()
*/
EAPI Eina_Bool elm_naviframe_event_enabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
- /**
+ /**
* @}
*/
return content;
}
-
static void
_item_del(Elm_Naviframe_Item *it)
{
{
wd->stack = eina_inlist_remove(wd->stack, EINA_INLIST_GET(navi_it));
_item_del(navi_it);
+ //If the item is only one, the stack will be empty
+ if (!wd->stack) return;
navi_it = EINA_INLIST_CONTAINER_GET(wd->stack->last,
Elm_Naviframe_Item);
evas_object_show(VIEW(navi_it));