Ignoring piled up key-press-events

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

 



I have a problem that I have been stuck on for a while.

In my image viewer giv, I have a problem with a pileup of key-press-events. E.g. a space means load the next image. The problem is that I can't serve the keypress events at the full speed that they are generated, and gtk then piles them up. Thus, if I e.g. press and hold space, the image viewer will load new images long after I have let go of the space bar.

What I would like to do is to receive, but ignore, all keypress events until the previous command has been fully served, or equivalently at the end of serving a keypress event, clear all the key-press-events from the event buffer.

What's the best way of implementing this in gtk?

Thanks!
Dov

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux