GNOME Bugzilla – Bug 101959
Add support for instance private structures
Last modified: 2011-02-18 16:07:08 UTC
It would be nice to have a way of storing private data in blocks allocated after the public part of the instance structure. See: http://mail.gnome.org/archives/gtk-devel-list/2002-December/msg00147.html For a detailed proposal and patch
Move bugs which are tracking planned 2.4 features to the proper target milestones.
Just so it doesn't get lost, see: http://mail.gnome.org/archives/gtk-devel-list/2003-January/msg00004.html for a version of Owen's patch with some minor changes, namely 1) add g_type_get_private_offset() and 2) add some tests to testgobject for the private data (useful even if the first part of the patch isn't accepted)
Committed. Thu Feb 27 17:33:19 2003 Owen Taylor <otaylor@redhat.com> * gtype.[ch] testgobject.c: Add support for instance-private data. g_type_class_add_private(), g_type_instance_get_private(), G_TYPE_INSTANCE_GET_PRIVATE(). (#101959, patch partly by Mark McLoughlin, extensive feedback from Tim Janik.)
I guess there is no reason to keep this open, since it is already committed...