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 625209 - Support setting name and nick for enum values
Support setting name and nick for enum values
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: general
0.9.x
Other Linux
: Normal enhancement
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2010-07-24 23:20 UTC by Evan Nemerson
Modified: 2018-05-19 10:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test case (289 bytes, application/octet-stream)
2010-07-24 23:20 UTC, Evan Nemerson
  Details
Allow specifying name and nick of enum values. (2.85 KB, patch)
2010-07-24 23:22 UTC, Evan Nemerson
none Details | Review
vala: Allow specifying name and nick of enum values (4.44 KB, patch)
2017-03-08 15:56 UTC, Rico Tzschichholz
needs-work Details | Review
vala: Allow specifying the nick of enum values (3.32 KB, patch)
2018-05-17 12:42 UTC, Rico Tzschichholz
committed Details | Review

Description Evan Nemerson 2010-07-24 23:20:35 UTC
Created attachment 166504 [details]
test case

It would be nice to be able to specify the name and nick for enum values, like you can currently specify the nick and blurb for properties.
Comment 1 Evan Nemerson 2010-07-24 23:22:59 UTC
Created attachment 166505 [details] [review]
Allow specifying name and nick of enum values.
Comment 2 Simon Werbeck 2012-02-16 11:54:09 UTC
When compiling to object files, there are a few things to keep in mind:
- gcc doesn't provide a --directory switch itself so valac has to
  simulate that using -o.
- For multiple source files, gcc cannot use both -o and -c, the same
  applies to valac. (maybe vala should detect that beforehand though.)

So for example
	valac -c foo.vala bar.vala
works as expected but
	valac -c -d outdir foo.vala bar.vala
will generate a warning from gcc as the -o option has to be used.
Comment 3 Simon Werbeck 2012-02-16 11:56:47 UTC
Nevermind the comment, I posted in the wrong thread
Comment 4 Rico Tzschichholz 2017-03-08 15:56:50 UTC
Created attachment 347490 [details] [review]
vala: Allow specifying name and nick of enum values
Comment 5 Rico Tzschichholz 2017-03-08 15:59:51 UTC
Review of attachment 347490 [details] [review]:

Just an updated / reworked patch.
This doesn't keep backwards compat and therefore isn't feasible to push.
Comment 6 Rico Tzschichholz 2018-05-17 12:42:49 UTC
Created attachment 372145 [details] [review]
vala: Allow specifying the nick of enum values
Comment 7 Rico Tzschichholz 2018-05-19 10:25:59 UTC
Attachment 372145 [details] pushed as ba1258d - vala: Allow specifying the nick of enum values