From a484a6757718ec96cf17328a17b88f7ee951810e Mon Sep 17 00:00:00 2001 From: Nicola Fontana Date: Wed, 24 Feb 2010 00:43:43 +0100 Subject: [PATCH] [AdgHatch] Allow NULL trails in hatch constructor adg_hatch_new() can now accept NULL as trail, in which case an empty hatch is created. --- adg/adg-hatch.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/adg/adg-hatch.c b/adg/adg-hatch.c index b00aaa01..f4b96bd9 100644 --- a/adg/adg-hatch.c +++ b/adg/adg-hatch.c @@ -140,14 +140,13 @@ set_property(GObject *object, guint prop_id, * @trail: the #AdgTrail to hatch * * Creates a new hatch entity. + * @trail can be %NULL, in which case an empty hatch is created. * * Returns: the newly created hatch entity **/ AdgHatch * adg_hatch_new(AdgTrail *trail) { - g_return_val_if_fail(ADG_IS_TRAIL(trail), NULL); - return g_object_new(ADG_TYPE_HATCH, "trail", trail, NULL); } -- 2.11.4.GIT