Hi,
I assume that you are trying to map keys to fit the visual studio schema :wink:
I encoutered this bug in the past in my application, and I ended up adding the following hack in the code:
//add include file required for the hack
#ifdef __WXGTK20__
#include <gtk-2.0/gtk/gtk.h>
#endif
//add this code somewhere in the frame constructor
#if defined(__WXGTK20__)
// A rather ugly hack here. GTK V2 insists that F10 should be the
// accelerator for the menu bar. We don't want that. There is
// no sane way to turn this off, but we *can* get the same effect
// by setting the "menu bar accelerator" property to the name of a
// function key that is apparently legal, but doesn't really exist.
// (Or if it does, it certainly isn't a key we use.)
gtk_settings_set_string_property (gtk_settings_get_default (),
"gtk-menu-bar-accel", "F15", "foo");
#endif
You will also need to update your makefile accordingly:
add to the include path:
pkg-config --cflags gtk+-2.0
and to the lib path:
pkg-config --libs gtk+-2.0
Works like a charm :)
Eran