GNOME Bugzilla – Bug 653909
Properties with internal setters still marked as writeable
Last modified: 2018-05-22 14:05:23 UTC
With (master, 69be997725ce6d9f3bed80bd0aae3532a4023ee2), if I declare a property: public Object my_property { get; internal set; } the generated C code still marks the GObject property as writeable. This is not what I expected. The setter C function for the property is correctly not exported outside the project, and all call sites which set the property correctly call this setter; so marking the property as read-only should be fine.
But accesses within the project might still need to set the property via GLib.Object.set("my_property", value). This could the case, for example, if you're using GBindings to link two properties. So declaring the property as non-writable doesn't seem like the correct solution.
*** Bug 768641 has been marked as a duplicate of this bug. ***
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vala/issues/213.