[vala] codewriter: Write cheader_filename for methods not in a Namespace



commit 9bcc1c60aacec176731c294112614a35631c6345
Author: Luca Bruno <lucabru src gnome org>
Date:   Sun May 15 22:59:27 2011 +0200

    codewriter: Write cheader_filename for methods not in a Namespace

 vala/valacodewriter.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index 6c11da9..0cdec76 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -1077,7 +1077,7 @@ public class Vala.CodeWriter : CodeVisitor {
 			ccode_params.append_printf ("%scname = \"%s\"", separator, m.get_cname ());
 			separator = ", ";
 		}
-		if (m.parent_symbol is Namespace) {
+		if (m.parent_symbol is Namespace || get_cheaders (m) != get_cheaders (m.parent_symbol)) {
 			ccode_params.append_printf ("%scheader_filename = \"%s\"", separator, get_cheaders(m));
 			separator = ", ";
 		}



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