From 0caebd4f945ac4b20ed965379eb58e26c2bb0de2 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Tue, 8 Jul 2014 13:16:59 +0200 Subject: [PATCH] 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. --- src/gswe-timestamp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gswe-timestamp.c b/src/gswe-timestamp.c index abb4224..a925155 100644 --- a/src/gswe-timestamp.c +++ b/src/gswe-timestamp.c @@ -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,