[vala/0.50] girparser: Apply "destroy_notify_cname" metadata for fields



commit 2675abe1ded99d2b8afadec903680bc4f6877997
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Jan 26 19:22:14 2021 +0100

    girparser: Apply "destroy_notify_cname" metadata for fields

 vala/valagirparser.vala | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index c8af369d9..f79f4816d 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -89,6 +89,7 @@ public class Vala.GirParser : CodeVisitor {
                RETURN_VOID,
                RETURNS_MODIFIED_POINTER,
                DELEGATE_TARGET_CNAME,
+               DESTROY_NOTIFY_CNAME,
                FINISH_VFUNC_NAME,
                NO_ACCESSOR_METHOD,
                CNAME,
@@ -1137,6 +1138,9 @@ public class Vala.GirParser : CodeVisitor {
                                        if (metadata.has_argument (ArgumentType.DELEGATE_TARGET_CNAME)) {
                                                field.set_attribute_string ("CCode", "delegate_target_cname", 
metadata.get_string (ArgumentType.DELEGATE_TARGET_CNAME));
                                        }
+                                       if (metadata.has_argument (ArgumentType.DESTROY_NOTIFY_CNAME)) {
+                                               field.set_attribute_string ("CCode", "destroy_notify_cname", 
metadata.get_string (ArgumentType.DESTROY_NOTIFY_CNAME));
+                                       }
 
                                        if (field.variable_type is DelegateType && parent.gtype_struct_for != 
null) {
                                                // virtual method field


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]