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 614587 - Add support for defining min/max/default values for GObject properties
Add support for defining min/max/default values for GObject properties
Status: RESOLVED DUPLICATE of bug 580385
Product: vala
Classification: Core
Component: Code Generator: GObject
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2010-04-01 14:12 UTC by Sebastian Dröge (slomo)
Modified: 2010-05-27 19:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastian Dröge (slomo) 2010-04-01 14:12:30 UTC
See summary...

something like the following could be used to implement this.

[GObjectProperty (min = 0, max = 12, default = 10)]
public uint foo { get; set; }

The min/max/default values of properties are useful for introspection and in the case of GStreamer for example, useful to automatically generate UIs for the properties (e.g. a slider with the min/max range).
Comment 1 Luca Bruno 2010-05-27 19:54:34 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 580385 ***