Now calling gswe_init() in GsweMoment constructors

This is to satisfy #8, although it's not fully implemented yet.
This commit is contained in:
Gergely Polonkai 2013-09-27 03:49:51 +02:00
parent 84195964ab
commit 6d84d650b5
3 changed files with 7 additions and 0 deletions

View File

@ -397,6 +397,8 @@ gswe_moment_get_house_system(GsweMoment *moment)
GsweMoment *
gswe_moment_new(void)
{
gswe_init();
return (GsweMoment *)g_object_new(GSWE_TYPE_MOMENT, NULL);
}

View File

@ -30,6 +30,7 @@
#include "gswe-house-system-info-private.h"
#include "gswe-house-data-private.h"
extern gboolean gswe_initialized;
extern gchar *gswe_ephe_path;
extern GsweTimestamp *gswe_full_moon_base_date;
extern GHashTable *gswe_planet_info_table;

View File

@ -146,6 +146,10 @@ gswe_init(void)
GsweAspectInfo *aspect_info;
GsweAntiscionAxisInfo *antiscion_axis_info;
if (gswe_initialized) {
return;
}
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");