mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-05 08:53:39 +02:00
gdbus-codegen: make members of an interface inherit the "Since" annotation
This is the expected (and sane) behavior - without this bug-fix you'd have to add "Since" to every member of a newly added D-Bus interface. Also show-case this in the codegen example. Signed-off-by: David Zeuthen <zeuthen@gmail.com>
This commit is contained in:
@@ -45,6 +45,19 @@
|
||||
<signal name="Jumped">
|
||||
<arg type="d" name="height"/>
|
||||
</signal>
|
||||
|
||||
<!--
|
||||
Foo:
|
||||
Property with no <quote>since</quote> annotation (should inherit the 2.30 from its containing interface).
|
||||
-->
|
||||
<property name="Foo" type="s" access="read"/>
|
||||
|
||||
<!--
|
||||
Bar:
|
||||
@since: 2.36
|
||||
Property with a later <quote>since</quote> annotation.
|
||||
-->
|
||||
<property name="Bar" type="s" access="read"/>
|
||||
</interface>
|
||||
|
||||
<!-- org.gtk.GDBus.Example.ObjectManager.Cat:
|
||||
|
Reference in New Issue
Block a user