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



On 06/27/2012 11:56 AM, Torsten Schoenfeld wrote:
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.

Fair enough. This certainly postpones the change until the next break of the IABI and thus probably the ABI and/or API also. I've opened a bug [1] so that this doesn't get lost in the mailing list.

Cheers,
Mark

[1] - https://bugzilla.gnome.org/show_bug.cgi?id=678975



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