char *path = NULL;
char full_path[PATH_LEN] = {0, };
- if (idx >= MAXIMUM_SELECTED_CITY) return EINA_FALSE;
- if (0 > idx) return EINA_FALSE;
- if (city[idx].obj) return EINA_FALSE;
+ retv_if(idx >= MAXIMUM_SELECTED_CITY, EINA_FALSE);
+ retv_if(0 > idx, EINA_FALSE);
int i;
for (i = 0; i < MAXIMUM_SELECTED_CITY; i++)
{
- if (city[i].ci.id == ci->id) return EINA_FALSE;
+ _D("HELLO, %d, %d", city[i].ci.id, ci->id);
+ retv_if(city[i].ci.id == ci->id, EINA_FALSE);
}
path = app_get_resource_path();
Eina_Bool
remove_city_from_map(int idx)
{
+ _D("HELLO, idx:%d", idx);
if (idx >= MAXIMUM_SELECTED_CITY) return EINA_FALSE;
if (0 > idx) return EINA_FALSE;
if (!city[idx].obj) return EINA_FALSE;
part_info_s *pi;
evas_object_geometry_get(obj, &x, &y, &w, &h);
- edje_object_part_geometry_get(elm_layout_edje_get(obj), "graph", &x2, &y2, &w2, &h2);
+ edje_object_part_geometry_get(elm_layout_edje_get(obj), "result_bar", &x2, &y2, &w2, &h2);
pi = evas_object_data_get(rect1, "part_info");
if (!pi) return;
break;
}
evas_object_geometry_get(item, &x, &y, &w, &h);
- edje_object_part_geometry_get(elm_layout_edje_get(item), "graph", &x2, &y2, &w2, &h2);
+ edje_object_part_geometry_get(elm_layout_edje_get(item), "result_bar", &x2, &y2, &w2, &h2);
xx = x + x2 + (w2 * p1);
evas_object_show(rect);
break;
}
evas_object_geometry_get(item, &x, &y, &w, &h);
- edje_object_part_geometry_get(elm_layout_edje_get(item), "graph", &x2, &y2, &w2, &h2);
+ edje_object_part_geometry_get(elm_layout_edje_get(item), "result_bar", &x2, &y2, &w2, &h2);
xx = x + x2 + (w2 * p1);
evas_object_show(rect);