else
edje_object_signal_emit(VIEW(it), "elm,state,segment,normal", "elm");
- if (elm_widget_disabled_get(sd->obj))
+ if (elm_widget_disabled_get(sd->obj)
+ || elm_object_item_disabled_get(eo_it))
edje_object_signal_emit(VIEW(it), "elm,state,disabled", "elm");
else
edje_object_signal_emit(VIEW(it), "elm,state,enabled", "elm");
if (it == sd->selected_item) return;
+ if (elm_object_item_disabled_get(EO_OBJ(it))) return;
+
if (sd->selected_item) _segment_off(sd->selected_item);
edje_object_signal_emit(VIEW(it), "elm,state,segment,selected", "elm");