Search code examples
cgobject

Why are GObject properties numbered from 1?


In all of the GObject examples involving properties, I see property #0 set aside for some reason. (Example)

Why is that?


Solution

  • From the docs:

    The property id of 0 is treated specially by GObject and it should not be used to store a GParamSpec.