From 2e80073cfdc0559a456e8851b8bc73a4f6d6632c Mon Sep 17 00:00:00 2001 From: Jaehyun Cho Date: Wed, 11 Feb 2015 20:17:07 +0900 Subject: [PATCH] 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. --- src/lib/template.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/lib/template.c b/src/lib/template.c index a12daa8..9d930b4 100644 --- a/src/lib/template.c +++ b/src/lib/template.c @@ -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);