GNOME Bugzilla – Bug 702996
Port to the new private macros and API
Last modified: 2013-07-09 08:45:35 UTC
bump the dependency to GLib 2.37.3, then use G_DEFINE_WITH_PRIVATE, G_DEFINE_ABSTRACT_WITH_TYPE, and G_ADD_PRIVATE when defining types.
Created attachment 247677 [details] [review] Bump GLib dependency to 2.37.3
Created attachment 247678 [details] [review] gdk: Use new WITH_PRIVATE macros to define types Drop the g_type_class_add_private() function, and use the macros instead.
Created attachment 247679 [details] [review] a11y: Use new macros for defining private data
Review of attachment 247678 [details] [review]: ok
Review of attachment 247677 [details] [review]: ok
Review of attachment 247679 [details] [review]: only spot-checked. looks ok
Created attachment 248421 [details] [review] gtk: Use new macros for defining private data
Created attachment 248422 [details] [review] deprecated: Use the new macros for adding instance private data
Created attachment 248423 [details] [review] gtk-demo: Use the new macros for adding instance private data
Created attachment 248424 [details] [review] tests: Use the new macros for adding instance private data
Created attachment 248425 [details] [review] docs: Update the coding style We should mention that newly written code should not have the private data pointer in the instance structure, and that private data should be added using the new GObject macros.
attachment 248421 [details] [review] is pretty big and boring. I tested with gtk-demo, but I guess we'll only find out if I forgot something once we get the buildbot to try and run the smoketest and the installed test suite.
Yeah, lets get this in now so we can find possible issues
Attachment 247677 [details] pushed as e77733e - Bump GLib dependency to 2.37.3 Attachment 247679 [details] pushed as 365919d - a11y: Use new macros for defining private data Attachment 248421 [details] pushed as 0899ef7 - gtk: Use new macros for defining private data Attachment 248422 [details] pushed as 84186ef - deprecated: Use the new macros for adding instance private data Attachment 248423 [details] pushed as 76df3ba - gtk-demo: Use the new macros for adding instance private data Attachment 248424 [details] pushed as a71def8 - tests: Use the new macros for adding instance private data Attachment 248425 [details] pushed as 19bc27c - docs: Update the coding style