eo_isa(obj, ELM_INTERFACE_SCROLLABLE_MIXIN);
}
+static void
+elm_widget_disabled_internal(Eo *obj, Eina_Bool disabled);
static Eina_Bool
_on_sub_obj_del(void *data,
Eo *obj,
_elm_widget_theme_apply(Eo *obj, Elm_Widget_Smart_Data *_pd EINA_UNUSED)
{
_elm_widget_mirrored_reload(obj);
-
- elm_widget_disabled_set(obj, elm_widget_disabled_get(obj));
+ if (elm_widget_disabled_get(obj))
+ elm_widget_disabled_internal(obj, elm_widget_disabled_get(obj));
return ELM_THEME_APPLY_SUCCESS;
}
}
}
-EOLIAN static void
-_elm_widget_disabled_set(Eo *obj, Elm_Widget_Smart_Data *sd, Eina_Bool disabled)
+static void
+elm_widget_disabled_internal(Eo *obj, Eina_Bool disabled)
{
Eina_Bool parent_state = EINA_FALSE;
- if (sd->disabled == disabled) return;
- sd->disabled = !!disabled;
if (disabled)
{
}
}
+EOLIAN static void
+_elm_widget_disabled_set(Eo *obj, Elm_Widget_Smart_Data *sd, Eina_Bool disabled)
+{
+ if (sd->disabled == disabled) return;
+ sd->disabled = !!disabled;
+
+ elm_widget_disabled_internal(obj, disabled);
+}
+
EOLIAN static Eina_Bool
_elm_widget_disabled_get(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *sd)
{