Add G_SEAL annotation for struct members, and add accessors for the (useful) fields. Patch based on work by Garrett Regier, see bug #592580.
Also, substitute the deprecated functions with the correct ones