Why keysym constants in gdk/gdkkeysyms.h are defined as macros, not as an enum?
- From: Mark Vender <markv743 yahoo co uk>
- To: gtk-devel-list gnome org
- Subject: Why keysym constants in gdk/gdkkeysyms.h are defined as macros, not as an enum?
- Date: Tue, 26 Jun 2012 16:02:21 +0300
Hello,
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.
Cheers,
Mark
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]