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:
SungTaek Hong 2016-02-18 13:31:26 -08:00 committed by Cedric BAIL
parent d302375c98
commit 0b8fe93c51
1 changed files with 2 additions and 2 deletions

View File

@ -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