[vala] Add delegate declarations to header file



commit eb0b7df3d60c29e9ead627efe5a523cc396ec45a
Author: Jürg Billeter <j bitron ch>
Date:   Wed Apr 8 17:34:51 2009 +0200

    Add delegate declarations to header file
---
 gobject/valaccodedelegatemodule.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/gobject/valaccodedelegatemodule.vala b/gobject/valaccodedelegatemodule.vala
index 30d1796..028f5f5 100644
--- a/gobject/valaccodedelegatemodule.vala
+++ b/gobject/valaccodedelegatemodule.vala
@@ -90,6 +90,10 @@ internal class Vala.CCodeDelegateModule : CCodeArrayModule {
 		d.accept_children (codegen);
 
 		generate_delegate_declaration (d, source_declarations);
+
+		if (!d.is_internal_symbol ()) {
+			generate_delegate_declaration (d, header_declarations);
+		}
 	}
 
 	public override string get_delegate_target_cname (string delegate_cname) {



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