hermet pushed a commit to branch master.

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

commit 53f4b3c28c21a490bba305c9cfe1660f3df29b4d
Author: Hermet Park <[email protected]>
Date:   Mon Jun 20 13:42:36 2016 +0900

    support the new type vector.
---
 data/autocomp/autocomp.src |  3 ++-
 data/color/edc.src         |  1 +
 src/lib/template.c         | 11 +++++------
 3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/data/autocomp/autocomp.src b/data/autocomp/autocomp.src
index 620751c..4acc5e7 100644
--- a/data/autocomp/autocomp.src
+++ b/data/autocomp/autocomp.src
@@ -1581,7 +1581,7 @@ group "lexem" struct {
                             value "cursor_offset" int: 4;
                             value "line_back" int: 1;
                             group "name" var_array {
-                               count 12;
+                               count 13;
                                value "string" string: "image";
                                value "string" string: "group";
                                value "string" string: "swallow";
@@ -1594,6 +1594,7 @@ group "lexem" struct {
                                value "string" string: "text";
                                value "string" string: "textblock";
                                value "string" string: "part";
+                               value "string" string: "vector";
                             }
                          }
                      }
diff --git a/data/color/edc.src b/data/color/edc.src
index ebad78c..5f85e37 100644
--- a/data/color/edc.src
+++ b/data/color/edc.src
@@ -72,6 +72,7 @@ group "syntax_color_group" struct {
             value "key" string: "text ";
             value "key" string: "text.";
             value "key" string: "textblock";
+            value "key" string: "vector";
             value "key" string: "zoom";
          }
       }
diff --git a/src/lib/template.c b/src/lib/template.c
index 93535bd..49b3e83 100644
--- a/src/lib/template.c
+++ b/src/lib/template.c
@@ -250,16 +250,15 @@ template_part_insert(edit_data *ed, Edje_Part_Type 
part_type,
         case EDJE_PART_TYPE_TABLE:
         case EDJE_PART_TYPE_EXTERNAL:
         case EDJE_PART_TYPE_PROXY:
-        case EDJE_PART_TYPE_LAST:
-           line_cnt = TEMPLATE_PART_IMAGE_LINE_CNT;
-           t = (char **) &TEMPLATE_PART_IMAGE;
-           strncpy(type_name, "image\0", 6);
-           break;
-        //for avoiding compiler warning.
         case EDJE_PART_TYPE_MESH_NODE:
         case EDJE_PART_TYPE_LIGHT:
         case EDJE_PART_TYPE_CAMERA:
         case EDJE_PART_TYPE_SNAPSHOT:
+        case EDJE_PART_TYPE_VECTOR:
+        case EDJE_PART_TYPE_LAST:
+           line_cnt = TEMPLATE_PART_IMAGE_LINE_CNT;
+           t = (char **) &TEMPLATE_PART_IMAGE;
+           strncpy(type_name, "image\0", 6);
            break;
      }
 

-- 


Reply via email to