Commit 6e1ecdfc authored by Rico Tzschichholz's avatar Rico Tzschichholz

girwriter: Output deprecated="1"

parent e171821d
...@@ -284,7 +284,7 @@ public class Vala.GIRWriter : CodeVisitor { ...@@ -284,7 +284,7 @@ public class Vala.GIRWriter : CodeVisitor {
private void write_symbol_attributes (Symbol symbol) { private void write_symbol_attributes (Symbol symbol) {
if (symbol.version.deprecated) { if (symbol.version.deprecated) {
buffer.append_printf (" deprecated=\"%s\"", (symbol.version.replacement == null) ? "" : "Use %s".printf (symbol.version.replacement)); buffer.append_printf (" deprecated=\"1\"");
if (symbol.version.deprecated_since != null) { if (symbol.version.deprecated_since != null) {
buffer.append_printf (" deprecated-version=\"%s\"", symbol.version.deprecated_since); buffer.append_printf (" deprecated-version=\"%s\"", symbol.version.deprecated_since);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment