Revert "Remove gswe_init() call from GsweTimestamp initializers"
This reverts commit 078ff3370d6820800accb8c2f9c69285796cf99b. 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:
parent
80b5da88a3
commit
0caebd4f94
@ -1341,6 +1341,8 @@ gswe_timestamp_new_from_gregorian_full(
|
|||||||
{
|
{
|
||||||
GsweTimestamp *timestamp;
|
GsweTimestamp *timestamp;
|
||||||
|
|
||||||
|
gswe_init();
|
||||||
|
|
||||||
timestamp = GSWE_TIMESTAMP(g_object_new(GSWE_TYPE_TIMESTAMP,
|
timestamp = GSWE_TIMESTAMP(g_object_new(GSWE_TYPE_TIMESTAMP,
|
||||||
"gregorian-year", year,
|
"gregorian-year", year,
|
||||||
"gregorian-month", month,
|
"gregorian-month", month,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user