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 526705 - GstIndexResolver uses nickname field as description field
GstIndexResolver uses nickname field as description field
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal normal
: 0.10.20
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-04-07 12:47 UTC by Kouhei Sutou
Modified: 2008-04-07 13:27 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kouhei Sutou 2008-04-07 12:47:19 UTC
GEnumValue struct's third field is for nickname not description. (*) But GstIndexResolver uses the field for description.

(*): http://library.gnome.org/devel/gobject/stable/gobject-Enumeration-and-Flag-Types.html


Ruby/GLib's dynamic GEnum/GFlags definition routine uses a nickname field for generating constant name in Ruby. If a nickname field has description not nickname, Ruby/GLib can't generate reasonable constant name from it.

Could you use nickname field just for nickname not description?
Comment 1 Tim-Philipp Müller 2008-04-07 13:27:06 UTC
Sure, thanks for pointing it out:

 2008-04-07  Tim-Philipp Müller  <tim at centricular dot net>

        * gst/gstindex.c: (gst_index_resolver_get_type):
          Don't put descriptions into the nick field of a GEnumValue: it's not
          meant for that and some language bindings rely on the nick field to
          construct constants and the like. Fixes #526705.