Re: Why keysym constants in gdk/gdkkeysyms.h are defined as macros, not as an enum?
- From: Torsten Schoenfeld <kaffeetisch gmx de>
- To: gtk-devel-list gnome org
- Subject: Re: Why keysym constants in gdk/gdkkeysyms.h are defined as macros, not as an enum?
- Date: Wed, 27 Jun 2012 10:56:42 +0200
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]