hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=b1d882765c5d9abd2d9cd70914cb8974640dcd52

commit b1d882765c5d9abd2d9cd70914cb8974640dcd52
Author: ChunEon Park <her...@hermet.pe.kr>
Date:   Wed Aug 13 22:19:32 2014 +0900

    Revert "template:  insert image parts not only live edit mode."
    
    This reverts commit 607f54ae87819300091802f57d58813e5f705d66.
    
    it caused cursor position side effect. revert it.
---
 src/bin/template.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/bin/template.c b/src/bin/template.c
index fa1d326..8e37d94 100644
--- a/src/bin/template.c
+++ b/src/bin/template.c
@@ -80,7 +80,10 @@ internal_template_part_insert(edit_data *ed,
                               Template_Part_Insert_Type insert_type,
                               const Eina_Stringshare *group_name)
 {
-   if (type == EDJE_PART_TYPE_IMAGE) image_description_add(ed);
+   if (type == EDJE_PART_TYPE_NONE) return;
+   if ((type == EDJE_PART_TYPE_IMAGE) &&
+       (insert_type == TEMPLATE_PART_INSERT_LIVE_EDIT))
+     image_description_add(ed);
 
    Evas_Object *edit_entry = edit_entry_get(ed);
    int cursor_pos = template_part_insert_cursor_pos_set(ed, insert_type,
@@ -206,6 +209,7 @@ template_part_insert(edit_data *ed, Edje_Part_Type type)
                                  0.25, 0.25, 0.75, 0.75, NULL);
 }
 
+
 void
 template_insert(edit_data *ed)
 {

-- 


Reply via email to