[gtkmm] GDK_space not getting passed?



This may not be a gtkmm problem, but I've noticed that if I attach a signal:

mc_image_window.signal_key_press_event().connect(slot(*this, &C_PicV::cb_keypress));

then in the callback:

bool C_PicV::cb_keypress(GdkEventKey* ke)
{
 gint key = ke->keyval;
 ...

'key' is never GDK_space, even if you press space. All other keys I've used work OK.

Can't see any reference to it in the list archives, but found someone on google who reported the same thing.




bevis




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