rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=885509ea69374c40ec354c6b6235fb60cd09d4e0

commit 885509ea69374c40ec354c6b6235fb60cd09d4e0
Author: Vyacheslav Reutskiy <[email protected]>
Date:   Mon Jul 25 17:36:49 2016 +0300

    tab_home_import_edj: load only 'base' class if setted default style
    
    If user try import the default style by options, like
    'eflete path/to/edj -w check:default' we will import and load
    only group, for given widget, 'elm/WIDGET/base/default'.
    This is work only for simple widgets, like button, check, frame etc.
    Because those widgets use only one group, for composite widgtes need
    add some file/map with required group names.
    
    Change-Id: I57a106b8e461806fa5afd6dd686cded5dc8ff8ff
---
 src/bin/ui/tab_home_import_edj.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/bin/ui/tab_home_import_edj.c b/src/bin/ui/tab_home_import_edj.c
index 262a36d..98a5887 100644
--- a/src/bin/ui/tab_home_import_edj.c
+++ b/src/bin/ui/tab_home_import_edj.c
@@ -631,7 +631,12 @@ _genlist_style_selected_set(Node *item, Eina_List *styles, 
Eina_Bool selected)
              EINA_LIST_FOREACH(styles, l, name)
                {
                   style_name = option_style_name_get(name, &cp_style_list);
-                  if (!strcmp(style, style_name))
+                  if (!strcmp(style_name, "default"))
+                    {
+                       pos = strstr(item->name, "base/default");
+                       if (pos) widget_list = eina_list_append(widget_list, 
item->name);
+                    }
+                  else if (!strcmp(style, style_name))
                     {
                        item->check = selected;
                        widget_list = eina_list_append(widget_list, item->name);

-- 


Reply via email to