Author: ChunEon Park <hermet>@hermet.pe.kr>
Date: Fri Mar 22 19:04:12 2013 +0900
elementary/naviframe - Now item popping can be cancelled if user returns
the EINA_FALSE in the pop_cb().
Change-Id: I5849c47fb7828dbb509f8e63f4a63a5d9ba85d66
it = (Elm_Naviframe_Item *)elm_naviframe_top_item_get(obj);
if (!it) return NULL;
- if (it->pop_cb) it->pop_cb(it->pop_data, (Elm_Object_Item *)it);
+ if (it->pop_cb)
+ {
+ if (!it->pop_cb(it->pop_data, (Elm_Object_Item *)it)) return NULL;
+ }
if (sd->preserve)
content = it->content;
* @typedef Elm_Naviframe_Item_Pop_Cb
*
* Pop callback called when @c it is going to be popped. @c data is user
- * specific data.
+ * specific data. If it returns the @c EINA_FALSE in the callback, item popping
+ * will be cancelled.
*
* @see elm_naviframe_item_pop_cb_set()
*
* @since 1.8
*/
-typedef void (*Elm_Naviframe_Item_Pop_Cb)(void *data, Elm_Object_Item *it);
+typedef Eina_Bool (*Elm_Naviframe_Item_Pop_Cb)(void *data, Elm_Object_Item *it);
/**
* @addtogroup Naviframe