theme: make the code more readable by changing the variable names.

This commit is contained in:
Daniel Juyung Seo 2014-02-26 02:07:18 +09:00
parent 909e29c1a3
commit 7d46fbb955
1 changed files with 6 additions and 6 deletions

View File

@ -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;
}