GObject: turn add-property-after-init to a warning
authorRyan Lortie <desrt@desrt.ca>
Mon, 10 Jun 2013 15:14:17 +0000 (11:14 -0400)
committerRyan Lortie <desrt@desrt.ca>
Mon, 10 Jun 2013 15:18:06 +0000 (11:18 -0400)
commitc1e32a5c59cf43d86c6e1b50ba570e01a549c026
tree47cb6b4f32608276a15cf2542cbea96a95ac92c7
parentbbf9f5e97c49f0f24476bfb7e457f7f60789ea89
GObject: turn add-property-after-init to a warning

We have turned up enough cases of this being done (including GTK API
allowing apps to do this to GtkSettings well after it has been
instantiated) that it is clear that we cannot really break this feature
while claiming to be backwards compatible.

For that reason, it becomes a warning rather than a critical (ie: it is
still well-defined behaviour, but you are discouraged from doing it).

The intention is to keep this feature for at least the next while.
A given GObjectClass will be able to avoid using GParamSpec pool for as
long as you don't install properties after init.  If you do that, you
will get a warning and we will devolve to using GParamSpecPool.

https://bugzilla.gnome.org/show_bug.cgi?id=698614
gobject/gobject.c