#include <app.h>
#include <Elementary.h>
#include <viewmgr.h>
+#include <inputmgr.h>
#include <ui-gadget.h>
#include <app_debug.h>
_ERR("Push view failed.");
}
+static void _pause(void *data)
+{
+ view_state state;
+
+ state = viewmgr_get_view_state(VIEW_ACTION_MENU);
+ if (state == VIEW_STATE_VISIBLE)
+ viewmgr_hide_view(VIEW_ACTION_MENU);
+
+ state = viewmgr_get_view_state(VIEW_PIN);
+ if (state == VIEW_STATE_VISIBLE)
+ viewmgr_hide_view(VIEW_PIN);
+
+ inputmgr_enable(EINA_FALSE);
+}
+
+static void _resume(void *data)
+{
+ inputmgr_enable(EINA_TRUE);
+}
+
int main(int argc, char *argv[])
{
struct _appdata ad;
.create = _create,
.terminate = _terminate,
.app_control = _app_control,
+ .pause = _pause,
+ .resume = _resume,
};
memset(&ad, 0x00, sizeof(ad));