Evas_Object *win;
Evas_Object *base;
Evas_Object *btn[MENU_BTN_SIZE];
+ Evas_Object *focused_btn;
layoutmgr *lmgr;
priv = data;
+ if (priv->focused_btn == obj)
+ return;
+
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,
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;
}