Now calling gswe_init() in GsweMoment constructors
This is to satisfy #8, although it's not fully implemented yet.
This commit is contained in:
parent
84195964ab
commit
6d84d650b5
@ -397,6 +397,8 @@ gswe_moment_get_house_system(GsweMoment *moment)
|
|||||||
GsweMoment *
|
GsweMoment *
|
||||||
gswe_moment_new(void)
|
gswe_moment_new(void)
|
||||||
{
|
{
|
||||||
|
gswe_init();
|
||||||
|
|
||||||
return (GsweMoment *)g_object_new(GSWE_TYPE_MOMENT, NULL);
|
return (GsweMoment *)g_object_new(GSWE_TYPE_MOMENT, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
#include "gswe-house-system-info-private.h"
|
#include "gswe-house-system-info-private.h"
|
||||||
#include "gswe-house-data-private.h"
|
#include "gswe-house-data-private.h"
|
||||||
|
|
||||||
|
extern gboolean gswe_initialized;
|
||||||
extern gchar *gswe_ephe_path;
|
extern gchar *gswe_ephe_path;
|
||||||
extern GsweTimestamp *gswe_full_moon_base_date;
|
extern GsweTimestamp *gswe_full_moon_base_date;
|
||||||
extern GHashTable *gswe_planet_info_table;
|
extern GHashTable *gswe_planet_info_table;
|
||||||
|
@ -146,6 +146,10 @@ gswe_init(void)
|
|||||||
GsweAspectInfo *aspect_info;
|
GsweAspectInfo *aspect_info;
|
||||||
GsweAntiscionAxisInfo *antiscion_axis_info;
|
GsweAntiscionAxisInfo *antiscion_axis_info;
|
||||||
|
|
||||||
|
if (gswe_initialized) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
|
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
|
||||||
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
|
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user