template: Enable to insert image description and textblock style.

Enable to insert image description and textblock style when image part and
textblock part are inserted.
Previously, those are inserted only if parts are inserted by the live edit.
This commit is contained in:
Jaehyun Cho 2015-02-11 20:17:07 +09:00
parent 392a12f9dd
commit 2e80073cfd
1 changed files with 5 additions and 7 deletions

View File

@ -240,13 +240,11 @@ template_part_insert(edit_data *ed, Edje_Part_Type part_type,
elm_entry_cursor_pos_set(edit_entry, cursor_pos);
if (insert_type == ENVENTOR_TEMPLATE_INSERT_LIVE_EDIT)
{
if (part_type == EDJE_PART_TYPE_IMAGE)
image_description_add(ed);
else if (part_type == EDJE_PART_TYPE_TEXTBLOCK)
textblock_style_add(ed, random_name);
}
if (part_type == EDJE_PART_TYPE_IMAGE)
image_description_add(ed);
else if (part_type == EDJE_PART_TYPE_TEXTBLOCK)
textblock_style_add(ed, random_name);
edit_syntax_color_partial_apply(ed, 0);
edit_changed_set(ed, EINA_TRUE);