]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Support transfer_ownership attribute for signal parameters
authorJürg Billeter <j@bitron.ch>
Thu, 29 Jan 2009 19:47:48 +0000 (19:47 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Thu, 29 Jan 2009 19:47:48 +0000 (19:47 +0000)
2009-01-29  Jürg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala:

Support transfer_ownership attribute for signal parameters

svn path=/trunk/; revision=2409

ChangeLog
vapigen/valagidlparser.vala

index d423afbcdb25d6f0fdb479fe5fba73d475b4c3fe..542a823f3378e76ee7e10bc1aee66892d3835b5b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-01-29  Jürg Billeter  <j@bitron.ch>
+
+       * vapigen/valagidlparser.vala:
+
+       Support transfer_ownership attribute for signal parameters
+
 2009-01-29  Philip Van Hoof  <philip@codeminded.be>
 
        * gobject/valaccodebasemodule.vala:
index 4c446dfe5ce1292e1c564bcd1b94b0342145bf70..daaabf5e676b01c1c7f9f3de4a54c808a1587332 100644 (file)
@@ -1936,6 +1936,10 @@ public class Vala.GIdlParser : CodeVisitor {
                                                if (eval (nv[1]) == "1") {
                                                        param_type.nullable = true;
                                                }
+                                       } else if (nv[0] == "transfer_ownership") {
+                                               if (eval (nv[1]) == "1") {
+                                                       param_type.value_owned = true;
+                                               }
                                        } else if (nv[0] == "type_name") {
                                                ((UnresolvedType) param_type).unresolved_symbol = new UnresolvedSymbol (null, eval (nv[1]));
                                        } else if (nv[0] == "namespace_name") {