edje_object_part_swallow(target, key, ic);
evas_object_show(ic);
elm_widget_sub_object_add(it->base.widget, ic);
+ if (it->disabled)
+ elm_widget_disabled_set(ic, EINA_TRUE);
}
}
}
ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it);
Widget_Data *wd = elm_widget_data_get(it->base.widget);
if (!wd) return;
- if (it->delete_me) return;
+ if ((it->delete_me) && (it->disabled)) return;
selected = !!selected;
if (it->selected == selected) return;
Eina_Bool disabled)
{
ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it);
+ Eina_List *l;
+ Evas_Object *obj;
if (it->disabled == disabled) return;
if (it->delete_me) return;
it->disabled = !!disabled;
+ if (it->selected)
+ elm_genlist_item_selected_set(it, EINA_FALSE);
if (it->realized)
{
if (it->disabled)
edje_object_signal_emit(it->base.view, "elm,state,disabled", "elm");
else
edje_object_signal_emit(it->base.view, "elm,state,enabled", "elm");
+ EINA_LIST_FOREACH(it->icon_objs, l, obj)
+ elm_widget_disabled_set(obj, disabled);
}
}