Skip to content

gobject: Only emit deprecation warnings for user-specified properties

Simon McVittie requested to merge wip/smcv/deprecated-construct-prop into main
  • gobject: Only emit deprecation warnings for user-specified properties

    If a deprecated property only gets set because it is G_PARAM_CONSTRUCT or G_PARAM_CONSTRUCT_ONLY, then there is nothing for the library user to fix, and we should not emit a deprecation warning.

    Resolves: #2748 (closed)

  • gobject: Add a test for deprecated properties

    Reproduces: #2748 (closed)


Previously !2888 (merged), which was merged at a time when it was not appropriate (during pre-2.74 freeze) and then reverted in !2890 (merged).

If there are already non-2.74-suitable changes in main (I think !2852 (merged) was targeting 2.75.x?), then I think this should also be backported into a new 2.74.x branch (or at least, @matthiasc marked #2748 (closed) as %2.74.1 material).

/cc @matthiasc @ebassi @sdroege

Edited by Simon McVittie

Merge request reports