[valadoc] doclets/gtkdoc: Do not add transfer full annotation for delegates



commit 9f2e3dbdf92644de18a5d99b20be6c00800c6f19
Author: Luca Bruno <lethalman88 gmail com>
Date:   Fri Aug 20 02:19:29 2010 +0200

    doclets/gtkdoc: Do not add transfer full annotation for delegates

 src/doclets/gtkdoc/generator.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/doclets/gtkdoc/generator.vala b/src/doclets/gtkdoc/generator.vala
index 25359e6..15d12b8 100644
--- a/src/doclets/gtkdoc/generator.vala
+++ b/src/doclets/gtkdoc/generator.vala
@@ -604,7 +604,7 @@ public class Gtkdoc.Generator : Api.Visitor {
 			annotations += "allow-none";
 		}
 
-		if (param.parameter_type.is_owned) {
+		if (param.parameter_type.is_owned && !(param.parameter_type.data_type is Api.Delegate)) {
 			annotations += "transfer full";
 		}
 



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