yakov pushed a commit to branch master.

http://git.enlightenment.org/tools/erigo.git/commit/?id=b8b6c770cf7f1cd41b03138aba303bd4aaefb015

commit b8b6c770cf7f1cd41b03138aba303bd4aaefb015
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Tue Jul 28 10:26:03 2015 +0300

    Fix default names generation (T2558)
    
    Change '.' in default valiables names to '_'
---
 src/lib/gui_widget.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/gui_widget.c b/src/lib/gui_widget.c
index 0b31eff..39274c8 100644
--- a/src/lib/gui_widget.c
+++ b/src/lib/gui_widget.c
@@ -639,6 +639,8 @@ gui_context_free_name_get(const Gui_Context *ctx, const 
char *class_name)
         /* Temprorary assign array to pointer to pass into eina_str_tolower()*/
         name = new_name;
         eina_str_tolower(&name);
+        char *p = name;
+        while ((p = strchr(p, '.'))) *p = '_';
         /* If where is no such name, we can save this id and return name.*/
         if (!gui_context_eid_get_by_name(ctx, name))
           {

-- 


Reply via email to