dataprotocol, lfocontrolsource: fix enum value name in enums that are public API

So run-time bindings can introspect the names correctly (we abuse this
field as description field only in elements, not for public API
(where the description belongs into the gtk-doc chunk).

https://bugzilla.gnome.org/show_bug.cgi?id=629946
This commit is contained in:
Tim-Philipp Müller 2010-10-08 00:38:39 +01:00
parent 3ee6ae4030
commit c7e3bab65d
2 changed files with 7 additions and 7 deletions

View file

@ -584,15 +584,15 @@ gst_lfo_waveform_get_type (void)
if (gtype == 0) { if (gtype == 0) {
static const GEnumValue values[] = { static const GEnumValue values[] = {
{GST_LFO_WAVEFORM_SINE, "Sine waveform (default)", {GST_LFO_WAVEFORM_SINE, "GST_LFO_WAVEFORM_SINE",
"sine"}, "sine"},
{GST_LFO_WAVEFORM_SQUARE, "Square waveform", {GST_LFO_WAVEFORM_SQUARE, "GST_LFO_WAVEFORM_SQUARE",
"square"}, "square"},
{GST_LFO_WAVEFORM_SAW, "Saw waveform", {GST_LFO_WAVEFORM_SAW, "GST_LFO_WAVEFORM_SAW",
"saw"}, "saw"},
{GST_LFO_WAVEFORM_REVERSE_SAW, "Reverse saw waveform", {GST_LFO_WAVEFORM_REVERSE_SAW, "GST_LFO_WAVEFORM_REVERSE_SAW",
"reverse-saw"}, "reverse-saw"},
{GST_LFO_WAVEFORM_TRIANGLE, "Triangle waveform", {GST_LFO_WAVEFORM_TRIANGLE, "GST_LFO_WAVEFORM_TRIANGLE",
"triangle"}, "triangle"},
{0, NULL, NULL} {0, NULL, NULL}
}; };

View file

@ -294,8 +294,8 @@ gst_dp_version_get_type (void)
{ {
static GType gst_dp_version_type = 0; static GType gst_dp_version_type = 0;
static const GEnumValue gst_dp_version[] = { static const GEnumValue gst_dp_version[] = {
{GST_DP_VERSION_0_2, "GDP Version 0.2", "0.2"}, {GST_DP_VERSION_0_2, "GST_DP_VERSION_0_2", "0.2"},
{GST_DP_VERSION_1_0, "GDP Version 1.0", "1.0"}, {GST_DP_VERSION_1_0, "GST_DP_VERSION_1_0", "1.0"},
{0, NULL, NULL}, {0, NULL, NULL},
}; };