Remove deprecated function calls from own code

This commit is contained in:
Gergely Polonkai 2014-06-11 15:38:21 +02:00
parent 07a351c373
commit 784987a2b6
3 changed files with 5 additions and 5 deletions

View File

@ -523,7 +523,7 @@ gswe_moment_calculate_house_positions(GsweMoment *moment, GError **err)
return; return;
} }
jd = gswe_timestamp_get_julian_day(moment->priv->timestamp, err); jd = gswe_timestamp_get_julian_day_et(moment->priv->timestamp, err);
// If Julian Day calculation yields error, we don't do anything. err is // If Julian Day calculation yields error, we don't do anything. err is
// already filled with the error message, so let's just return // already filled with the error message, so let's just return
@ -679,7 +679,7 @@ gswe_moment_calculate_planet(GsweMoment *moment, GswePlanet planet, GError **err
} }
swe_set_topo(moment->priv->coordinates.longitude, moment->priv->coordinates.latitude, moment->priv->coordinates.altitude); swe_set_topo(moment->priv->coordinates.longitude, moment->priv->coordinates.latitude, moment->priv->coordinates.altitude);
jd = gswe_timestamp_get_julian_day(moment->priv->timestamp, err); jd = gswe_timestamp_get_julian_day_et(moment->priv->timestamp, err);
if (planet_data->planet_info->real_body == FALSE) { if (planet_data->planet_info->real_body == FALSE) {
if ( if (

View File

@ -102,7 +102,7 @@ gswe_moon_phase_data_calculate_by_jd(GsweMoonPhaseData *moon_phase_data, gdouble
gdouble jdb, gdouble jdb,
phase_percent; phase_percent;
jdb = gswe_timestamp_get_julian_day(gswe_full_moon_base_date, err); jdb = gswe_timestamp_get_julian_day_et(gswe_full_moon_base_date, err);
if ((err) && (*err)) { if ((err) && (*err)) {
return; return;
@ -152,7 +152,7 @@ gswe_moon_phase_data_calculate_by_timestamp(GsweMoonPhaseData *moon_phase_data,
{ {
gdouble jd; gdouble jd;
jd = gswe_timestamp_get_julian_day(timestamp, err); jd = gswe_timestamp_get_julian_day_et(timestamp, err);
if (*err) { if (*err) {
return; return;

View File

@ -1056,7 +1056,7 @@ gswe_timestamp_new_from_julian_day(gdouble julian_day)
{ {
GsweTimestamp *timestamp = gswe_timestamp_new(); GsweTimestamp *timestamp = gswe_timestamp_new();
gswe_timestamp_set_julian_day(timestamp, julian_day); gswe_timestamp_set_julian_day_et(timestamp, julian_day, NULL);
return timestamp; return timestamp;
} }