summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2014-01-20 18:04:30 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-01-20 18:04:30 +0900
commiteee7ea4130ec239ac5d009aa227c3b2bbcfece39 (patch)
treec88212b315f9a5b1d6fcae298f5042b9d9715296
parentc985061c10dbe57b97a6291bd36272efa933fdfe (diff)
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
-rw-r--r--src/lib/elm_entry.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index 3324c8f85..1ed060589 100644
--- a/src/lib/elm_entry.c
+++ b/src/lib/elm_entry.c
@@ -519,14 +519,20 @@ _elm_entry_smart_disable(Eo *obj, void *_pd, va_list *list)
519 { 519 {
520 edje_object_signal_emit(sd->entry_edje, "elm,state,disabled", "elm"); 520 edje_object_signal_emit(sd->entry_edje, "elm,state,disabled", "elm");
521 if (sd->scroll) 521 if (sd->scroll)
522 eo_do(obj, elm_scrollable_interface_freeze_set(EINA_TRUE)); 522 {
523 edje_object_signal_emit(sd->scr_edje, "elm,state,disabled", "elm");
524 eo_do(obj, elm_scrollable_interface_freeze_set(EINA_TRUE));
525 }
523 sd->disabled = EINA_TRUE; 526 sd->disabled = EINA_TRUE;
524 } 527 }
525 else 528 else
526 { 529 {
527 edje_object_signal_emit(sd->entry_edje, "elm,state,enabled", "elm"); 530 edje_object_signal_emit(sd->entry_edje, "elm,state,enabled", "elm");
528 if (sd->scroll) 531 if (sd->scroll)
529 eo_do(obj, elm_scrollable_interface_freeze_set(EINA_FALSE)); 532 {
533 edje_object_signal_emit(sd->scr_edje, "elm,state,disabled", "elm");
534 eo_do(obj, elm_scrollable_interface_freeze_set(EINA_FALSE));
535 }
530 sd->disabled = EINA_FALSE; 536 sd->disabled = EINA_FALSE;
531 } 537 }
532 538