Created ag_chart_new_full() instead of ag_chart_new()

This commit is contained in:
2013-09-14 17:37:33 +02:00
parent c407023bc9
commit 58ac3786b1
2 changed files with 18 additions and 3 deletions

View File

@@ -21,8 +21,23 @@ ag_chart_init(AgChart *chart)
}
AgChart *
ag_chart_new(void)
ag_chart_new_full(GsweTimestamp *timestamp, gdouble longitude, gdouble latitude, gdouble altitude, GsweHouseSystem house_system)
{
return NULL;
AgChart *ret;
GsweCoordinates *coords = g_new0(GsweCoordinates, 1);
coords->longitude = longitude;
coords->latitude = latitude;
coords->altitude = altitude;
ret = AG_CHART(g_object_new(AG_TYPE_CHART,
"timestamp", timestamp,
"coordinates", coords,
"house-system", house_system,
NULL));
g_free(coords);
return ret;
}