GNOME Bugzilla – Bug 646860
Make style provider priority introspectable
Last modified: 2014-05-22 16:22:20 UTC
It would be nice of GTK_STYLE_PROVIDER_PRIORITY_... were introspectable. I would guess that this requires an enum instead of defines? There is probably a good reason why these are defines, but it would still be cool to have these constants available in other languages.
Can I at least get a reason?
its just a number, really
GTK_STYLE_PROVIDER_PRIORITY_... are introspectable already: after all, they do appear in the GIR file generate by GTK+, and are usable by introspection-based language bindings. what Jesse may mean is that you'd like these to conform to an enumeration type, e.g. Gtk.StyleProviderPriority.APPLICATION. I do agree with Matthias, though: I think it's just syntactic sugar, and I don't think it's worth adding another enumeration type for them.
Actually, I didn't know that they were exposed in the gir by now, as constants. That works for me. I do wonder why these need to be defines, which seems like an anti-pattern for gtk+ to me, but oh well.