Eina_List *stack;
Item *top, *oldtop;
Evas_Object *rect, *clip;
- Eina_Bool disable_animation: 1;
};
struct _Item
_eval_top(Evas_Object *obj)
{
Widget_Data *wd = elm_widget_data_get(obj);
- Eina_Bool show_noanimate = EINA_TRUE;
Item *ittop;
if (!wd) return;
if (!wd->stack) return;
if (wd->top)
{
o = wd->top->base;
- if(wd->disable_animation)
- {
- edje_object_signal_emit(o, "elm,action,hide,noanimate", "elm");
- if (wd->top->popme)
- wd->stack = eina_list_remove(wd->stack, wd->top);
- }
- else if (wd->top->popme)
+ if (wd->top->popme)
{
edje_object_signal_emit(o, "elm,action,pop", "elm");
wd->stack = eina_list_remove(wd->stack, wd->top);
else if (!strcmp(onhide, "lower")) evas_object_lower(o);
}
}
- else
- {
- show_noanimate = EINA_FALSE;
- }
wd->oldtop = wd->top;
wd->top = ittop;
o = wd->top->base;
evas_object_show(o);
- if ((!show_noanimate)||(wd->disable_animation))
- {
- edje_object_signal_emit(o, "elm,action,show,noanimate", "elm");
- }
- else if (wd->oldtop)
+ if (wd->oldtop)
{
if (elm_object_focus_get(wd->oldtop->content))
- elm_object_focus_set(wd->top->content, EINA_TRUE);
+ elm_widget_focused_object_clear(wd->oldtop->content);
if (wd->oldtop->popme)
edje_object_signal_emit(o, "elm,action,show", "elm");
else
if (!wd->top) return NULL;
return wd->top->content;
}
-
-EAPI void
-elm_pager_animation_disabled_set(Evas_Object *obj, Eina_Bool disable)
-{
- ELM_CHECK_WIDTYPE(obj, widtype);
- Widget_Data *wd = elm_widget_data_get(obj);
- wd->disable_animation = disable;
-}