bool CContextView::m_DrawContextButtons(void) {
Evas_Object *eoBox, *eoImg, *eoLayout = NULL;
- int i, btn_size;
+ int i;
char *img_name, *str_ctxt_menu;
bool isFavorite, isPin;
elm_box_padding_set(eoBox, SIZE_BOX_PAD_W * elm_config_scale_get(),
SIZE_BOX_PAD_H * elm_config_scale_get());
- btn_size = CTXT_MENU_BTN_SIZE;
-
- for (i = 0; str_inhouse_app[i]; i++) {
- if (strcmp(m->pAppInfo->GetAppid(), str_inhouse_app[i]) == 0) {
- btn_size = CTXT_MENU_BTN_SIZE - 1;
- break;
- }
- }
-
- for (i = 0; i < btn_size; i++) {
+ for (i = 0; i < CTXT_MENU_BTN_SIZE; i++) {
eoLayout = elm_layout_add(eoBox);
if (!eoLayout) {
_ERR("elm_layout_add failed.");
elm_object_focus_set(m->eoBtnCtxtMenu[0], EINA_TRUE);
elm_object_focus_next_object_set(m->eoBtnCtxtMenu[0],
- m->eoBtnCtxtMenu[btn_size - 1], ELM_FOCUS_LEFT);
- elm_object_focus_next_object_set(m->eoBtnCtxtMenu[btn_size - 1],
+ m->eoBtnCtxtMenu[CTXT_MENU_BTN_SIZE - 1], ELM_FOCUS_LEFT);
+ elm_object_focus_next_object_set(m->eoBtnCtxtMenu[CTXT_MENU_BTN_SIZE - 1],
m->eoBtnCtxtMenu[0], ELM_FOCUS_RIGHT);
evas_object_size_hint_weight_set(eoLayout, EVAS_HINT_EXPAND,
EVAS_HINT_EXPAND);