From 09ac3b455b856ec608cd54880b4a2dd395f66629 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Mon, 30 Jan 2017 18:15:46 +0100 Subject: [PATCH] Added boxed type in ::ghashtable_get_gdatetime. --- src/generic.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.49.0