Introspection tells us which arguments can be null, however the gir's for most packages have not been
updated to show this (Gtk had a big patchfest last week to add this, but it will not be reflected on end users
desktop gir's for a while) - until then we issue g_warnings.
if (is_null)
{
- seed_make_exception (ctx, exception,
- "ArgumentError",
+ // RE-INSTATE THIS CODE LATER.. - when gtk etc. has be release with fixes
+ //seed_make_exception (ctx, exception,
+ // "ArgumentError",
+ g_warning( "ArgumentError - probably due to incorrect gir file (which may be fixed upstream)"
" argument %d must not be null for"
" function: %s. \n",
i + 1,
g_base_info_get_name ((GIBaseInfo *)
info));
- goto arg_error;
+ //goto arg_error;
}
}
i + 1,
g_base_info_get_name ((GIBaseInfo *)
info));
- arg_error:
+
+// FIXME - SEE NOTE ABOVE ABOUT gtk allow_null bugs
+// arg_error:
g_base_info_unref ((GIBaseInfo *) type_info);
g_base_info_unref ((GIBaseInfo *) arg_info);
g_free (in_args);