theme: make the code more readable by changing the variable names.
This commit is contained in:
parent
909e29c1a3
commit
7d46fbb955
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue