Ignoring piled up key-press-events
- From: "Dov Grobgeld" <dov grobgeld gmail com>
- To: gtk-list <gtk-list gnome org>
- Subject: Ignoring piled up key-press-events
- Date: Mon, 15 Dec 2008 23:45:01 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]