Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED);
static Eina_Bool _key_action_top_item_get(Evas_Object *obj, const char *params);
+static Eina_Bool _key_action_item_pop(Evas_Object *obj, const char *params);
static char *_access_info_cb(void *data, Evas_Object *obj EINA_UNUSED);
static const Elm_Action key_actions[] = {
{"top_item_get", _key_action_top_item_get},
+ {"item_pop", _key_action_item_pop},
{NULL, NULL}
};
return EINA_TRUE;
}
+static Eina_Bool
+_key_action_item_pop(Evas_Object *obj, const char *params EINA_UNUSED)
+{
+ Elm_Object_Item *eo_item = NULL;
+ eo_item = elm_naviframe_top_item_get(obj);
+ if (!eo_item) return EINA_FALSE;
+
+ ELM_NAVIFRAME_ITEM_DATA_GET(eo_item, it);
+
+ if (it->pushing || it->popping) return EINA_FALSE;
+
+ elm_naviframe_item_pop(obj);
+
+ return EINA_TRUE;
+}
+
EOLIAN static Eina_Bool
_elm_naviframe_elm_widget_event(Eo *obj, Elm_Naviframe_Data *sd EINA_UNUSED, Evas_Object *src, Evas_Callback_Type type, void *event_info)
{
{
static Elm_Atspi_Action atspi_actions[] = {
{ "top_item_get", "top_item_get", NULL, _key_action_top_item_get },
+ { "item_pop", "item_pop", NULL, _key_action_item_pop },
{ NULL, NULL, NULL, NULL }
};
return &atspi_actions[0];