class ui_view: public ui_view_base
{
+ friend class ui_viewmgr;
+
public:
ui_view(ui_controller *controller, const char *name = NULL);
virtual ~ui_view();
}
this->set_indicator(view->get_indicator());
+ view->active();
evas_object_show(this->win);
//FIXME: based on the profile, we should app to go behind or terminate.
if (true)
{
+ ui_view *view = dynamic_cast<ui_view *>(this->get_last_view());
+ if (view) view->inactive();
evas_object_lower(this->win);
}
else
bool ui_viewmgr::pop_view()
{
- if (!ui_viewmgr_base::pop_view())
- {
- return false;
- }
+ if (this->get_view_count() == 1) this->deactivate();
+ else if(!ui_viewmgr_base::pop_view()) return false;
ui_view *view = dynamic_cast<ui_view *>(this->get_last_view());