GNOME Bugzilla – Bug 592942
Use g_type_class_add_private() if GLib 2.24 is used
Last modified: 2010-03-22 08:07:16 UTC
Created attachment 141590 [details] [review] vala-gtype-class-add-private.diff Hi, attached patch uses g_type_class_add_private() if GLib 2.22 is selected to be used instead of the manual workaround for really private class fields. The GObject patch is in bug #521707.
Created attachment 141591 [details] [review] vala-gtype-class-add-private.diff Fix small regression for the <2.22 mode by taking the correct GType.
Created attachment 141595 [details] [review] vala-gtype-class-add-private.diff ...and the same slightly cleaned up.
Comment on attachment 141595 [details] [review] vala-gtype-class-add-private.diff Needs some work still, the code for class locks needs to be updated to the new macro too. Also the macro can be simplified a bit... patch will follow later :)
Created attachment 141675 [details] [review] vala-gtype-class-add-private.diff Now it's finished I hope, the testsuite runs without errors and everything looks good
Created attachment 142533 [details] [review] vala-gtype-class-add-private.diff Same patch, updated to apply against latest GIT version
Created attachment 156451 [details] [review] Add support for g_type_class_add_private() and friends when GLib >= 2.24 is requested Fixes bug #592942.
Updated to apply cleanly again and use the correct GLib version. Anything I need to change before I can push this? :)
commit 460ec9fd2ff63166e7bdb0ab46fe6e028170de97 Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Mon Mar 22 09:05:43 2010 +0100 Use g_type_class_add_private() when targeting GLib >= 2.24 Fixes bug 592942.