Remove deprecated method of doing private structs on gobjects
This updates the code to use the new method of instance private data:
- I removed calls to
g_type_class_add_private
. - I renamed
Priv
structs and typedefs toPrivate
where necessary. - I used
G_DEFINE_TYPE_WITH_PRIVATE
where possible, orG_ADD_PRIVATE
in cases whereG_DEFINE_TYPE_WITH_CODE
is used. - I replaced
GET_PRIV
calls with_get_instance_private
calls. - I decided to leave in the few places where the private struct was part of the public struct. Those cases do use the new private instance method. They just also have a direct pointer access.
It compiled. It ran. It was pretty straightforward and I think I got everything right. But I'd still appreciate a review. @davidk can you look it over? Or at somebody else you'd like to look it over.