D-Bus properties aren't exposed as GObject properties
Submitted by Tristan Brindle
Link to original bug (#736277)
Description
As per the subject, generated GInterfaces for D-Bus interfaces don't have GObject properties corresponding to D-Bus properties.
This is a problem because the generated GIR for the interfaces claims the properties exist (and it also doesn't include the get_propname()
/set_propname()
functions which Vala exposes). It also means that it's not possible to call g_object_set()
on a proxy in C, as you would expect to be possible.
Generated interfaces should install properties in their base_init()
implementation, as they do for signals (and perhaps the generated proxy classes need to override these and provide get_property()
/set_property()
functions as well, I don't know enough about GDBusProxy
to know whether it handles this automatically).
Version: 0.24.x