glib/gobject
Philip Withnall 3c14b6846d docs: Standardise property ID enums in examples
Drop the redundant `PROP_0` (which isn’t a real property) and initialise
the first member of the enum instead.

Add a typedef so that the enum type can be used in `switch` statements
in `get_property()` and `set_property()` vfuncs. This allows
`-Wswitch-enum` to be used to improve type safety.

The examples here don’t have `get_property()` or `set_property()`
vfuncs, but people might copy/paste the code to somewhere which does.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2022-05-20 12:57:36 +01:00
..
2022-01-28 16:01:22 -08:00
2022-01-28 16:01:22 -08:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2021-07-29 10:09:27 -04:00
2020-11-17 15:50:07 +00:00
2021-07-12 10:40:33 +00:00