Revert "Remove gswe_init() call from GsweTimestamp initializers"

This reverts commit 078ff3370d.

It turns out that we actually need to call gswe_init() (or at least
g_type_init()) for GObjects to work.
This commit is contained in:
Gergely Polonkai 2014-07-08 13:16:59 +02:00
parent 80b5da88a3
commit 0caebd4f94
1 changed files with 2 additions and 0 deletions

View File

@ -1341,6 +1341,8 @@ gswe_timestamp_new_from_gregorian_full(
{
GsweTimestamp *timestamp;
gswe_init();
timestamp = GSWE_TIMESTAMP(g_object_new(GSWE_TYPE_TIMESTAMP,
"gregorian-year", year,
"gregorian-month", month,