From: Andrea Zagli Date: Mon, 30 Jan 2017 17:15:46 +0000 (+0100) Subject: Added boxed type in ::ghashtable_get_gdatetime. X-Git-Tag: v0.0.2~1^2~2 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=09ac3b455b856ec608cd54880b4a2dd395f66629;p=libzakutils Added boxed type in ::ghashtable_get_gdatetime. --- diff --git a/src/generic.c b/src/generic.c index 662468a..95b5637 100644 --- a/src/generic.c +++ b/src/generic.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 Andrea Zagli + * Copyright (C) 2015-2017 Andrea Zagli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -817,6 +817,10 @@ GDateTime { ret = g_date_time_ref ((GDateTime *)g_value_get_pointer (gv)); } + else if (G_VALUE_HOLDS (gv, G_TYPE_DATE_TIME)) + { + ret = g_date_time_ref ((GDateTime *)g_value_get_boxed (gv)); + } else { ret = NULL;