GNOME Bugzilla – Bug 797144
glviewconvert: fix GEnumValue declaration
Last modified: 2018-10-03 10:15:07 UTC
See commit log.
Created attachment 373654 [details] [review] glviewconvert: fix GEnumValue declaration The purpose of value_name in GEnumValue structure is to express in text format the name of the enum, not a description of the value, so it can be use later for the gir file generation.
Why is this even public API? :) And why is it not generated with glib-mkenums?
(In reply to Sebastian Dröge (slomo) from comment #2) > Why is this even public API? :) For use in glimagesink and glviewconvert. > And why is it not generated with glib-mkenums? Dunno :)
(In reply to Matthew Waters (ystreet00) from comment #3) > (In reply to Sebastian Dröge (slomo) from comment #2) > > Why is this even public API? :) > > For use in glimagesink and glviewconvert. Enums used only in plugins should not really be public API IMHO, oh well too late :) > > And why is it not generated with glib-mkenums? > > Dunno :) Can this one and possibly other enums be switched to it? That would seem nicer.
Attachment 373654 [details] pushed as fae3f7c - glviewconvert: fix GEnumValue declaration
(In reply to Sebastian Dröge (slomo) from comment #4) > (In reply to Matthew Waters (ystreet00) from comment #3) > > (In reply to Sebastian Dröge (slomo) from comment #2) > > > Why is this even public API? :) > > > > For use in glimagesink and glviewconvert. > > Enums used only in plugins should not really be public API IMHO, oh well too > late :) It's also possible to be used from gtkglsink/qmlglsink/any other gl sink. glviewconvert is also public API so the enum should also be no? > > > And why is it not generated with glib-mkenums? > > > > Dunno :) > > Can this one and possibly other enums be switched to it? That would seem > nicer. It can
(In reply to Matthew Waters (ystreet00) from comment #6) > > > > And why is it not generated with glib-mkenums? > > > > > > Dunno :) > > > > Can this one and possibly other enums be switched to it? That would seem > > nicer. > > It can Then let's do that :)