Change-Id: I9c671b2f25172788abaf3550afc7d459a7098cbf
Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
Evas_Object *win;
Evas_Object *base;
Evas_Object *btn[MENU_BTN_SIZE];
Evas_Object *win;
Evas_Object *base;
Evas_Object *btn[MENU_BTN_SIZE];
+ Evas_Object *focused_btn;
+ if (priv->focused_btn == obj)
+ return;
+
for (i = 0; i < MENU_BTN_SIZE; i++) {
if (priv->btn[i] == obj)
break;
}
for (i = 0; i < MENU_BTN_SIZE; i++) {
if (priv->btn[i] == obj)
break;
}
- if (i == priv->current_layout || i == MENU_BTN_SIZE)
+ if (i == MENU_BTN_SIZE)
return;
layoutmgr_hide_layout(priv->lmgr,
return;
layoutmgr_hide_layout(priv->lmgr,
layoutmgr_show_layout(priv->lmgr, g_menu_item[i].layout_id);
layoutmgr_update_layout(priv->lmgr, g_menu_item[i].layout_id, 0, NULL);
layoutmgr_show_layout(priv->lmgr, g_menu_item[i].layout_id);
layoutmgr_update_layout(priv->lmgr, g_menu_item[i].layout_id, 0, NULL);
+ priv->focused_btn = obj;
priv->current_layout = i;
}
priv->current_layout = i;
}