elementary entry: send a signal to edje for notifying scrollable mode

Summary:
If entry edje should be changed according to scrollable mode,
the signal will be used. The following signals are added.
	"elm,scroll,enable"
	"elm,scroll,disable"

Test Plan: N/A

Reviewers: raster, tasn, herdsman, cedric

Subscribers: minkyu, jpeg, akanad, z-wony, Blackmole

Differential Revision: https://phab.enlightenment.org/D4254
This commit is contained in:
Youngbok Shin 2016-09-26 16:03:45 +03:00 committed by Daniel Hirt
parent 174f355446
commit 145f590f84
1 changed files with 5 additions and 0 deletions

View File

@ -956,6 +956,11 @@ _elm_entry_elm_widget_theme_apply(Eo *obj, Elm_Entry_Data *sd)
"entry", "handler/end", style);
}
if (sd->scroll)
edje_obj_signal_emit(sd->entry_edje, "elm,scroll,enable", "elm");
else
edje_obj_signal_emit(sd->entry_edje, "elm,scroll,disable", "elm");
sd->changed = EINA_TRUE;
elm_layout_sizing_eval(obj);