GNOME Bugzilla – Bug 749033
modernize GObjects
Last modified: 2015-05-08 18:55:26 UTC
Lots of objects in Builder are still doing things the "old way". Make sure everything that can be changed to G_DECLARE_FINAL_TYPE() or G_DECLARE_DERIVABLE_TYPE() is changed to do so. Once we bump to GtkSourceView-3.17 this should be easier. We should be using g_object_class_install_properties() instead of installing each property one at a time. Beware of situations where we have overrides, since they will not have a param spec and could make this more difficult (not many). As for parameter checks, generally speaking, my preference is: g_return_if_fail() or g_return_val_if_fail() in public API. g_assert() in functions that are "static"
Created attachment 303075 [details] [review] builder: modernize GObjects.Use G_DECLARE_FINAL_TYPE() and G_DECLARE_DERIVABLE_TYPE() This patch is only for builder source code.AKA src/ folder.
Review of attachment 303075 [details] [review]: Wow, thanks so much for doing this! I pushed to master with one small fix for a lingering ->priv.