After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 531359 - support for non-GObject properties (with getters and setters)
support for non-GObject properties (with getters and setters)
Status: RESOLVED INVALID
Product: vala
Classification: Core
Component: Bindings
0.3.x
Other All
: Normal enhancement
: ---
Assigned To: Jürg Billeter
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2008-05-04 10:55 UTC by Vlad Grecescu
Modified: 2008-05-25 15:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vlad Grecescu 2008-05-04 10:55:54 UTC
There are still some GObject APIs that expose a public field and provide a set and get method for it, but don't publish it as an GObject property.

For example, modifying the TreeViewColumn.sort_column_id field does not do the same thing as calling TreeViewColumn.set_sort_column_id ().

Usage of an attribute/annotation for cases like this should be possible in the VAPI files.
Comment 1 Jürg Billeter 2008-05-25 15:37:51 UTC
That should already be possible. Reopen if you have a test case where a non-GObject property doesn't work.