2008-01-18 Jürg Billeter <j@bitron.ch>
+ * gobject/valaccodegenerator.vala: don't generate public setter for
+ construct-only properties, fixes bug 479062
+
+2008-01-18 Jürg Billeter <j@bitron.ch>
+
* vala/scanner.l, vala/parser.y: support pointers as generic type
arguments
function.add_parameter (cvalueparam);
}
- if (!prop.is_internal_symbol ()) {
+ if (!prop.is_internal_symbol () && (acc.readable || acc.writable)) {
+ // accessor function should be public if the property is a public symbol and it's not a construct-only setter
header_type_member_declaration.append (function.copy ());
} else {
function.modifiers |= CCodeModifiers.STATIC;
}
if (!is_virtual) {
- if (!prop.is_internal_symbol ()) {
+ if (!prop.is_internal_symbol () && (acc.readable || acc.writable)) {
+ // accessor function should be public if the property is a public symbol and it's not a construct-only setter
header_type_member_declaration.append (function.copy ());
} else {
function.modifiers |= CCodeModifiers.STATIC;