{
set_int(is_toggle, 0);
set_int(is_enabled, 1);
- set_int(is_focused, 1);
+ set_int(is_focused, 0);
set_int(is_init, 1);
set_int(cur_state, -1);
}
foc = get_int(is_focused);
sel = get_int(is_selected);
c_state = get_int(cur_state);
+
if(enab == 0)
{
- if(c_state == DISABLED)
+ if(c_state != DISABLED)
{
if (togg == 0)
{
{
if(foc == 1)
{
- if(c_state == FOCUSED)
+ if(c_state != FOCUSED)
{
if (togg == 0)
{
}
else if(sel == 1)
{
- if(c_state == SELECTED)
+ if(c_state != SELECTED)
{
if (togg == 0)
{
}
else
{
- if(c_state == DEFAULT)
+ if(c_state != DEFAULT)
{
if (togg == 0)
{
}
program {
name: "go_focused";
- signal: "elm,state,focused";
+ signal: "elm,action,focus";
source: "elm";
script {
init_values();
}
program {
name: "go_unfocused";
- signal: "elm,state,unfocused";
+ signal: "elm,action,unfocus";
source: "elm";
script {
init_values();
i++;
}
+ elm_object_focus_next_object_set(priv->menu_btn[0],
+ priv->menu_btn[i - 1], ELM_FOCUS_LEFT);
+ elm_object_focus_next_object_set(priv->menu_btn[i - 1],
+ priv->menu_btn[0], ELM_FOCUS_RIGHT);
+
while (col + 1 != ITEMS_IN_ROW) {
btn = util_add_button(priv->base, NULL, NULL,
STYLE_ACTION_MENU_BTN);
return false;
}
+ elm_object_disabled_set(btn, EINA_TRUE);
+
col = i % ITEMS_IN_ROW;
elm_table_pack(table, btn, col, row, 1, 1);
i++;
}
- elm_object_focus_next_object_set(priv->menu_btn[0],
- priv->menu_btn[i - 1], ELM_FOCUS_LEFT);
- elm_object_focus_next_object_set(priv->menu_btn[i - 1],
- priv->menu_btn[0], ELM_FOCUS_RIGHT);
-
return true;
}