forked from enlightenment/efl
entry: If the scrollable entry is set disable, send "*,disabled" signal to scr_edje too.
Summary: Default theme of entry does not have any disabled state in "elm/scroller/entry/*" styles. But EFL developer can make any custom style for entry and scroller and it can has disabled state. So _elm_entry_smart_disable has to emit "*disabled" signal to scr_edje. Reviewers: woohyun, tasn, seoz, Hermet, raster Reviewed By: raster Differential Revision: https://phab.enlightenment.org/D464
This commit is contained in:
parent
f0e70bbad8
commit
0d81887544
|
@ -519,14 +519,20 @@ _elm_entry_smart_disable(Eo *obj, void *_pd, va_list *list)
|
||||||
{
|
{
|
||||||
edje_object_signal_emit(sd->entry_edje, "elm,state,disabled", "elm");
|
edje_object_signal_emit(sd->entry_edje, "elm,state,disabled", "elm");
|
||||||
if (sd->scroll)
|
if (sd->scroll)
|
||||||
eo_do(obj, elm_scrollable_interface_freeze_set(EINA_TRUE));
|
{
|
||||||
|
edje_object_signal_emit(sd->scr_edje, "elm,state,disabled", "elm");
|
||||||
|
eo_do(obj, elm_scrollable_interface_freeze_set(EINA_TRUE));
|
||||||
|
}
|
||||||
sd->disabled = EINA_TRUE;
|
sd->disabled = EINA_TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
edje_object_signal_emit(sd->entry_edje, "elm,state,enabled", "elm");
|
edje_object_signal_emit(sd->entry_edje, "elm,state,enabled", "elm");
|
||||||
if (sd->scroll)
|
if (sd->scroll)
|
||||||
eo_do(obj, elm_scrollable_interface_freeze_set(EINA_FALSE));
|
{
|
||||||
|
edje_object_signal_emit(sd->scr_edje, "elm,state,disabled", "elm");
|
||||||
|
eo_do(obj, elm_scrollable_interface_freeze_set(EINA_FALSE));
|
||||||
|
}
|
||||||
sd->disabled = EINA_FALSE;
|
sd->disabled = EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue