Re: Why keysym constants in gdk/gdkkeysyms.h are defined as macros, not as an enum?



On 27.06.2012 08:09, Tomeu Vizoso wrote:
Well, using enums would make wrapping keysyms much easier on the gtkmm side.

It will also help other bindings to stop doing things such as this:

http://git.gnome.org/browse/pygobject/tree/gi/overrides/keysyms.py

Why is this needed? The GDK_KEY_x constants are introspected properly and are available as Gdk.KEY_x.

Changing the defines to enums would change the representation that gobject-introspection produces and would thus constitute a break of the IABI, as Colin called it -- the introspection ABI. The positive effects of such a change should therefore be significant enough to outweigh this downside.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]