GObject: allow G_PARAM_CONSTRUCT on any override
authorRyan Lortie <desrt@desrt.ca>
Wed, 21 Dec 2011 00:33:02 +0000 (19:33 -0500)
committerRyan Lortie <desrt@desrt.ca>
Wed, 21 Dec 2011 00:40:44 +0000 (19:40 -0500)
commit4e793c2eefab1a9b5b0c29b530cbe77fb53d7396
treed480f485bb696a7425baa3e956fc8de0677fef5e
parentb3b9f82206707d6adad0d54ae9232bc826bec574
GObject: allow G_PARAM_CONSTRUCT on any override

We were previously preventing implementations of an interface from
specifying G_PARAM_CONSTRUCT for a property of that interface if the
interface didn't specify it itself (or was readonly).

This is something that should only interest the implementation, so we
remove this restriction.

This allows 6 new possible override scenarios:

 - writable                 -> writable/construct
 - writable                 -> readwrite/construct
 - readwrite                -> readwrite/construct
 - writable/construct-only  -> writable/construct
 - writable/construct-only  -> readwrite/construct
 - readwrite/construct-only -> readwrite/construct

and we update the testcase to reflect this.

https://bugzilla.gnome.org/show_bug.cgi?id=666616
gobject/gobject.c
gobject/tests/param.c