2007-09-08 Juerg Billeter <j@bitron.ch>
* gobject/valacodegeneratorclass.vala: append the generated free
function to the right file fragment
svn path=/trunk/; revision=591
2007-09-08 Jürg Billeter <j@bitron.ch>
+ * gobject/valacodegeneratorclass.vala: append the generated free
+ function to the right file fragment
+
+2007-09-08 Jürg Billeter <j@bitron.ch>
+
* gobject/valacodegeneratorsignal.vala: report an error when trying to
define a signal in a type not deriving from GLib.Object
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 ();
function.block = cblock;
- def_frag.append (function);
+ source_type_member_definition.append (function);
}
current_type_symbol = old_type_symbol;