gi = data;
+ snprintf(buf, sizeof(buf), "%s", gi->name);
+ city = strtok_r(buf, "/", &tmp);
+ country = strtok_r(tmp, "", &tmp);
+
if (!strcmp(part, PART_ELM_TEXT_COUNT)) {
cnt = eina_list_count(gi->list);
snprintf(buf, sizeof(buf), "%d", cnt);
return strdup(buf);
- } else {
- snprintf(buf, sizeof(buf), "%s", gi->name);
-
- city = strtok_r(buf, "/", &tmp);
- country = strtok_r(tmp, "", &tmp);
-
- if (!strcmp(part, PART_ELM_TEXT_CITY)) {
- if (!city)
- return NULL;
+ } else if (!strcmp(part, PART_ELM_TEXT_CITY)) {
+ if (!city)
+ return NULL;
- return strdup(city);
- } else if (!strcmp(part, PART_ELM_TEXT_COUNTRY)) {
- if (!country)
- return NULL;
+ return strdup(city);
+ } else if (!strcmp(part, PART_ELM_TEXT_COUNTRY)) {
+ if (!country)
+ return NULL;
- return strdup(country);
- }
+ return strdup(country);
}
return NULL;
return false;
}
- elm_object_part_content_set(priv->content, PART_ACTION_MENU_AREA, table);
+ elm_object_part_content_set(priv->content,
+ PART_ACTION_MENU_AREA, table);
priv->table = table;
elm_gengrid_item_class_free(ic);
- count = eina_list_count(priv->favorite_list) / content_info[type].grid_n;
+ count = eina_list_count(priv->favorite_list)
+ / content_info[type].grid_n;
if (eina_list_count(priv->favorite_list) % content_info[type].grid_n)
count++;