=?utf-8?q?=5Bvaladoc=5D_doclets/gtkdoc=3A_Add_a_gtk-doc_header_for_non-st?= =?utf-8?b?YXRpYyBkZWxlZ2F0ZXMg4oCYdXNlcl9kYXRh4oCZ?=



commit f945b7ddd5fdccf1abdd7f5753f76cbba3635eb0
Author: Philip Withnall <philip tecnocode co uk>
Date:   Thu Aug 16 20:22:31 2012 +0200

    doclets/gtkdoc: Add a gtk-doc header for non-static delegates âuser_dataâ
    
    Non-static delegates take in a generated âuser_dataâ parameter,
    which needs some (boilerplate) documentation.

 src/doclets/gtkdoc/generator.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/doclets/gtkdoc/generator.vala b/src/doclets/gtkdoc/generator.vala
index e904d77..af29391 100644
--- a/src/doclets/gtkdoc/generator.vala
+++ b/src/doclets/gtkdoc/generator.vala
@@ -681,6 +681,10 @@ It is important that your <link linkend=\"GValue\"><type>GValue</type></link> ho
 			visit_thrown_error_domain (ex);
 		}
 
+		if (!d.is_static) {
+			add_custom_header ("user_data", "data to pass to the delegate function", {"closure"});
+		}
+
 		add_symbol (d.get_filename(), d.get_cname(), d.documentation);
 
 		current_headers = old_headers;



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