forked from enlightenment/efl
edje_external: check icon param after other param is set in entry
Summary: - icon param add an elm_icon and content set to icon part. - entry's style is changing as other params are set and icon part may not exist in certain condition(default has no icon part) - checking icon param later than other params will set icon part after the style is changed. Reviewers: cedric, woohyun, jpeg, herdsman, tasn Reviewed By: tasn Subscribers: conr2d Differential Revision: https://phab.enlightenment.org/D3693 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
d302375c98
commit
0b8fe93c51
|
@ -57,8 +57,6 @@ external_entry_state_set(void *data EINA_UNUSED, Evas_Object *obj,
|
|||
|
||||
if (p->label)
|
||||
elm_object_text_set(obj, p->label);
|
||||
if (p->icon)
|
||||
elm_object_part_content_set(obj, "icon", p->icon);
|
||||
if (p->entry)
|
||||
elm_object_text_set(obj, p->entry);
|
||||
if (p->scrollable_exists)
|
||||
|
@ -84,6 +82,8 @@ external_entry_state_set(void *data EINA_UNUSED, Evas_Object *obj,
|
|||
line_wrap = _entry_line_wrap_choices_setting_get(p->line_wrap);
|
||||
elm_entry_line_wrap_set(obj, line_wrap);
|
||||
}
|
||||
if (p->icon)
|
||||
elm_object_part_content_set(obj, "icon", p->icon);
|
||||
}
|
||||
|
||||
static Eina_Bool
|
||||
|
|
Loading…
Reference in New Issue