if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
{
get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "landscape_disabled_visible"))
- set_state(PART:"elm.text", "landscape_visible", 0.0);
- else
+ if (!strcmp(st, "landscape_disabled"))
set_state(PART:"elm.text", "landscape", 0.0);
+ else
+ set_state(PART:"elm.text", "landscape_visible", 0.0);
}
else
{
get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "disabled_visible"))
- set_state(PART:"elm.text", "visible", 0.0);
- else
+ if (!strcmp(st, "disabled"))
set_state(PART:"elm.text", "default", 0.0);
+ else
+ set_state(PART:"elm.text", "visible", 0.0);
}
set_int(button_state, BUTTON_STATE_ENABLED);
}