summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 9330e02..89b2aa6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -19,6 +19,7 @@
#include <viewmgr.h>
#include <inputmgr.h>
#include <ui-gadget.h>
+#include <app_define.h>
#include <app_debug.h>
#include "define.h"
@@ -113,6 +114,8 @@ static void _terminate(void *data)
static void _app_control(app_control_h control, void *data)
{
struct _appdata *ad;
+ char *category;
+ int r;
if (!data) {
_ERR("Get data failed.");
@@ -123,6 +126,13 @@ static void _app_control(app_control_h control, void *data)
if (ad->win)
elm_win_activate(ad->win);
+ r = app_control_get_extra_data(control, PARAM_CATEGORY, &category);
+ if (r != APP_CONTROL_ERROR_NONE)
+ category = NULL;
+
+ if (category)
+ viewmgr_update_view(VIEW_BASE, UPDATE_MENU, category);
+
if (!viewmgr_push_view(VIEW_BASE))
_ERR("Push view failed.");
}