2008-03-01 Jürg Billeter <j@bitron.ch>
+ * gobject/valaccodegenerator.vala,
+ gobject/valaccodegeneratorclass.vala: don't register private
+ properties with GObject property system, fixes bug 519201
+
+2008-03-01 Jürg Billeter <j@bitron.ch>
+
* vapi/Makefile.am, vapi/hildon-fm-2.deps, vapi/hildon-fm-2.vapi,
vapi/packages/hildon-fm-2/: add hildon-fm-2 bindings,
based on patch by Levi Bard, fixes bug 511092
next_temp_var_id = old_next_temp_var_id;
// FIXME: omit real struct types for now since they cannot be expressed as gobject property yet
- if (prop.parent_symbol is Class && !prop.type_reference.is_real_struct_type ()) {
+ // don't register private properties
+ if (prop.parent_symbol is Class && !prop.type_reference.is_real_struct_type () && prop.access != SymbolAccessibility.PRIVATE) {
prop_enum.add_value (new CCodeEnumValue (prop.get_upper_case_cname ()));
}
}
if (prop.type_reference.is_real_struct_type ()) {
continue;
}
+ if (prop.access == SymbolAccessibility.PRIVATE) {
+ // don't register private properties
+ continue;
+ }
+
if (prop.overrides || prop.base_interface_property != null) {
var cinst = new CCodeFunctionCall (new CCodeIdentifier ("g_object_class_override_property"));
cinst.add_argument (ccall);
if (prop.get_accessor == null || prop.is_abstract || prop.type_reference.is_real_struct_type ()) {
continue;
}
+ if (prop.access == SymbolAccessibility.PRIVATE) {
+ // don't register private properties
+ continue;
+ }
bool is_virtual = prop.base_property != null || prop.base_interface_property != null;
if (prop.set_accessor == null || prop.is_abstract || prop.type_reference.is_real_struct_type ()) {
continue;
}
+ if (prop.access == SymbolAccessibility.PRIVATE) {
+ // don't register private properties
+ continue;
+ }
bool is_virtual = prop.base_property != null || prop.base_interface_property != null;