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)
|
theme_load(const char *edje_file)
|
||||||
{
|
{
|
||||||
Eina_List *groups = NULL, *l = NULL, *ll = NULL;
|
Eina_List *groups = NULL, *l = NULL, *ll = NULL;
|
||||||
char *group = NULL, *token = NULL;
|
char *group = NULL, *token = NULL, *widget = NULL;
|
||||||
char *style = NULL;
|
char *style = NULL;
|
||||||
char buf[PATH_MAX] = {0, };
|
char buf[PATH_MAX] = {0, };
|
||||||
Widget_Data *wd = NULL;
|
Widget_Data *wd = NULL;
|
||||||
|
@ -80,24 +80,24 @@ theme_load(const char *edje_file)
|
||||||
token = strtok(buf, "/");
|
token = strtok(buf, "/");
|
||||||
if (strncmp("elm", token, 5))
|
if (strncmp("elm", token, 5))
|
||||||
{
|
{
|
||||||
//ERR("%s is not a proper elementary style.", token);
|
//ERR("%s is not a proper elementary style.", group);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// get the widget name
|
// get the widget name
|
||||||
token = strtok(NULL, "/");
|
widget = strtok(NULL, "/");
|
||||||
if (!token) continue;
|
if (!widget) continue;
|
||||||
|
|
||||||
// get the widget data of the widget
|
// get the widget data of the widget
|
||||||
wd = NULL;
|
wd = NULL;
|
||||||
EINA_LIST_FOREACH(widget_list, ll, wd)
|
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;
|
break;
|
||||||
}
|
}
|
||||||
if (!wd)
|
if (!wd)
|
||||||
{
|
{
|
||||||
//ERR("%s is not a proper elementary widget.", token);
|
//ERR("%s is not a proper elementary widget.", widget);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue