static const char *widtype = NULL;
+//widget signals
static const char SIG_TRANSITION_FINISHED[] = "transition,finished";
-static const char SIG_PUSH_FINISHED[] = "push,finished";
-static const char SIG_POP_FINISHED[] = "pop,finished";
static const char SIG_TITLE_CLICKED[] = "title,clicked";
+//widget item signals
+static const char SIG_ITEM_SHOW_BEGIN[] = "show,begin";
+static const char SIG_ITEM_HIDE_FINISHED[] = "hide,finished";
+
static const Evas_Smart_Cb_Description _signals[] = {
{SIG_TRANSITION_FINISHED, ""},
{SIG_TITLE_CLICKED, ""},
+ {SIG_ITEM_SHOW_BEGIN, ""},
+ {SIG_ITEM_HIDE_FINISHED, ""},
{NULL, NULL}
};
if (!wd) return;
evas_object_hide(VIEW(it));
- evas_object_smart_callback_call(WIDGET(it),
- SIG_PUSH_FINISHED,
- data);
if (wd->freeze_events)
evas_object_freeze_events_set(VIEW(it), EINA_FALSE);
+
+ elm_widget_item_smart_callback_call(it,
+ SIG_ITEM_HIDE_FINISHED,
+ NULL);
}
static void
{
Elm_Naviframe_Item *it = data;
if (!it) return;
- evas_object_smart_callback_call(WIDGET(it),
- SIG_POP_FINISHED,
- data);
_item_del(data);
elm_widget_item_free(data);
}
if (!it) return NULL;
wd->stack =
- eina_inlist_prepend_relative(wd->stack, EINA_INLIST_GET(it),
+ eina_inlist_prepend_relative(wd->stack,
+ EINA_INLIST_GET(it),
EINA_INLIST_GET(((Elm_Naviframe_Item *) before)));
_sizing_eval(WIDGET(before));
return (Elm_Object_Item *) it;
evas_object_show(VIEW(it));
}
wd->stack =
- eina_inlist_append_relative(wd->stack, EINA_INLIST_GET(it),
+ eina_inlist_append_relative(wd->stack,
+ EINA_INLIST_GET(it),
EINA_INLIST_GET(((Elm_Naviframe_Item *) after)));
_sizing_eval(WIDGET(after));
return (Elm_Object_Item *) it;
"elm");
edje_object_message_signal_process(elm_layout_edje_get(VIEW(it)));
edje_object_message_signal_process(elm_layout_edje_get(VIEW(prev_it)));
+ elm_widget_item_smart_callback_call(prev_it,
+ SIG_ITEM_SHOW_BEGIN,
+ NULL);
}
else
{