[PATCH] Enable querying for custom GParamSpec properties during GObject scan
Submitted by Elliot Smith
Link to original bug (#639430)
Description
Created attachment 178236 [PATCH] Add support for custom property parsing as part of GObject scan
Use a similar approach to the GTK+ support to enable documentation of custom properties as each GType is scanned.
Extra properties to look for are defined in a property loader definition file, which specifies a GType filter, property lookup function, and property flag ("s" for style, "c" for child, "" for standard) for each property returned.
For example:
MX_TYPE_STYLABLE,mx_stylable_iface_list_properties,s
(obviously requires mx_stylable_iface_list_properties function to exist, which I've currently suggested for Mx)
The property loader file is parsed by gtkdoc-scangobj (passed in via a new --custom-properties option) and used to augment the args output function (in mx-scan.c) for each scanned type. Any GTypes being scanned which match the GType filter have the property lookup function called on them; any returned GParamSpecs are then parsed and added to the .args file for the matching class, with the flags set.
It might also be possible to refactor some of the GTK+ args output code to make use of this approach.
Patch is attached (against master).
Patch 178236, "[PATCH] Add support for custom property parsing as part of GObject scan":
0001-scangobj-Add-support-for-custom-property-documentati.patch