diff --git a/src/bin/theme.c b/src/bin/theme.c index 6cc3e5f..26f1178 100644 --- a/src/bin/theme.c +++ b/src/bin/theme.c @@ -62,7 +62,7 @@ void theme_load(const char *edje_file) { Eina_List *groups = NULL, *l = NULL, *ll = NULL; - char *group = NULL, *token = NULL; + char *group = NULL, *token = NULL, *widget = NULL; char *style = NULL; char buf[PATH_MAX] = {0, }; Widget_Data *wd = NULL; @@ -80,24 +80,24 @@ theme_load(const char *edje_file) token = strtok(buf, "/"); if (strncmp("elm", token, 5)) { - //ERR("%s is not a proper elementary style.", token); + //ERR("%s is not a proper elementary style.", group); continue; } // get the widget name - token = strtok(NULL, "/"); - if (!token) continue; + widget = strtok(NULL, "/"); + if (!widget) continue; // get the widget data of the widget wd = NULL; EINA_LIST_FOREACH(widget_list, ll, wd) { - if (!strcmp(widget_name_get_by_type(wd->type), token)) + if (!strcmp(widget_name_get_by_type(wd->type), widget)) break; } if (!wd) { - //ERR("%s is not a proper elementary widget.", token); + //ERR("%s is not a proper elementary widget.", widget); continue; }