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


Is there any reason why preprocessor macros are used to define the GDK keysym constants in gdk/gdkkeysyms.h instead of an enum? For what it's worth, there's no advantage in using macros. They are inconsistent with other enumerations within GTK+ library, which universally use enums. An enum offers better scoping and would be easier to wrap on the C++ side.

If there's support, I could prepare a patch that converts the keysym macros to an enum. From the user's point of view enum and macro constants are equivalent, so there's no need to wait for an API/ABI break.


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