ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(item);
if (item->disabled == disabled) return;
if (item->delete_me) return;
- item->disabled = disabled;
+ item->disabled = !!disabled;
if (item->realized)
{
if (item->disabled)
ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it);
if (it->disabled == disabled) return;
if (it->delete_me) return;
- it->disabled = disabled;
+ it->disabled = !!disabled;
if (it->realized)
{
if (it->disabled)
{
ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(item);
if (disabled == item->disabled) return;
- item->disabled = disabled;
+ item->disabled = !!disabled;
if (disabled)
{
edje_object_signal_emit(item->base.view, "elm,state,disabled", "elm");
if (!wd) return;
if (it->disabled == disabled) return;
- it->disabled = disabled;
+ it->disabled = !!disabled;
if (it->disabled)
{
edje_object_signal_emit(it->base.view, "elm,state,disabled", "elm");