elementary/elm_entry : When entry is disabled, scrolling is also disabled.

This commit is contained in:
WooHyun Jung 2013-04-16 17:59:02 +09:00
parent f3e1e995fd
commit 68dd4b5f4e
3 changed files with 9 additions and 0 deletions

View File

@ -1256,3 +1256,7 @@
* Fix the policy is not changed when the theme is changed. * Fix the policy is not changed when the theme is changed.
The "reload" signal from edc is necessary always. The "reload" signal from edc is necessary always.
2013-04-16 WooHyun Jung
* When entry is disabled, scrolling is also disabled.

View File

@ -208,6 +208,7 @@ Fixes:
* Fix the region_show/region_bring_in don't have a limit at a paging movement. * Fix the region_show/region_bring_in don't have a limit at a paging movement.
* Fix the calculation double type number. * Fix the calculation double type number.
* Fix the policy is not changed when the theme is changed. * Fix the policy is not changed when the theme is changed.
* When entry is disabled, scrolling is also disabled.
Removals: Removals:

View File

@ -463,11 +463,15 @@ _elm_entry_smart_disable(Eo *obj, void *_pd, va_list *list)
if (elm_object_disabled_get(obj)) if (elm_object_disabled_get(obj))
{ {
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)
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)
eo_do(obj, elm_scrollable_interface_freeze_set(EINA_FALSE));
sd->disabled = EINA_FALSE; sd->disabled = EINA_FALSE;
} }