GNOME Bugzilla – Bug 644330
PostalAddressOwner should use FieldDetails instead of PostalAddress.types
Last modified: 2011-04-26 15:51:14 UTC
It looks like we didn't quite update PostalAddressOwner to fit the conventions of our newer interfaces before merging. We should change - public abstract List<PostalAddress> postal_addresses { get; set; } + public abstract List<FieldDetails> postal_addresses { get; set; } and remove PostalAddress.types.
On the other hand, this will require that we change FieldDetails.value to a GLib.Value and make PostalAddress subclass GLib.Value, which will mean a whole lot of other breakage.
As suggested on IRC, I think a more elegant solution would be to make FieldDetails abstract and have things like PostalAddress be subclasses of FieldDetails which add their own value property (with the appropriate type). That's turning into quite a heavyweight API though.
(In reply to comment #2) > As suggested on IRC, I think a more elegant solution would be to make > FieldDetails abstract and have things like PostalAddress be subclasses of > FieldDetails which add their own value property (with the appropriate type). > That's turning into quite a heavyweight API though. Yeah, I'm not sure it's worth it. GValue is a pain to use in C, so I'm fine with closing this.