[gtkada] Missing GDK buttons definition?
Emmanuel Briot
briot at adacore.com
Wed Mar 26 10:33:13 CET 2014
> I found no definition for mouse buttons,
> GDK_BUTTON_PRIMARY, GDK_BUTTON_SECONDARY, GDK_BUTTON_MIDDLE, etc.
These are just three #define in C:
#define GDK_BUTTON_PRIMARY (1)
#define GDK_BUTTON_MIDDLE (2)
#define GDK_BUTTON_SECONDARY (3)
So you can certainly declare Ada constants for these.
> Is it intentional or missing from the binding?
We don't in general bind macros, because they are in most cases C-specific (the ones
in glib) or inapplicable to Ada or require an intermediate C file in GtkAda.
These packages are also mostly automatically generated, so it is sometimes complex
to hack on the python script to do the generation.
I have however added those three constants to the development version of GtkAda.
regards
Emmanuel
More information about the gtkada
mailing list