From: Juerg Billeter Date: Sat, 8 Sep 2007 15:30:53 +0000 (+0000) Subject: append the generated free function to the right file fragment X-Git-Tag: VALA_0_1_4~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18c627d4f26ea2b2a32ad79d3f8b96eae4423ef7;p=thirdparty%2Fvala.git append the generated free function to the right file fragment 2007-09-08 Juerg Billeter * gobject/valacodegeneratorclass.vala: append the generated free function to the right file fragment svn path=/trunk/; revision=591 --- diff --git a/ChangeLog b/ChangeLog index 51abe0439..abbf890e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-09-08 Jürg Billeter + + * gobject/valacodegeneratorclass.vala: append the generated free + function to the right file fragment + 2007-09-08 Jürg Billeter * gobject/valacodegeneratorsignal.vala: report an error when trying to diff --git a/gobject/valacodegeneratorclass.vala b/gobject/valacodegeneratorclass.vala index d50db814a..20cdd20ef 100644 --- a/gobject/valacodegeneratorclass.vala +++ b/gobject/valacodegeneratorclass.vala @@ -169,7 +169,11 @@ public class Vala.CodeGenerator { function.add_parameter (new CCodeFormalParameter ("self", cl.get_cname () + "*")); - decl_frag.append (function.copy ()); + if (cl.access != SymbolAccessibility.PRIVATE) { + header_type_member_declaration.append (function.copy ()); + } else { + source_type_member_declaration.append (function.copy ()); + } var cblock = new CCodeBlock (); @@ -182,7 +186,7 @@ public class Vala.CodeGenerator { function.block = cblock; - def_frag.append (function); + source_type_member_definition.append (function); } current_type_symbol = old_type_symbol;