Re: Button press
- From: Sven Neumann <sven gimp org>
- To: davidgn servidor unam mx
- Cc: "gtk-list gnome org" <gtk-list gnome org>
- Subject: Re: Button press
- Date: 06 Feb 2002 16:40:22 +0100
Hi,
David Eduardo Gomez Noguera <davidgn servidor unam mx> writes:
> I wanted to make a button behave lika a keyboard key, in that if i leave the key pressed, it will repeat.
> Thus i connected a button widget to a pressed signal, but when i press it its like sometimes it was kust once, and other times 20 times at once or so. (The button is supossed to increment the content of a label).
> How can i make it so that if i held the button pressed, the signal will repeat itself, but with a small, but noticeable, delay? or is this in the FAQ?
>
use a timeout:
http://developer.gnome.org/doc/API/gtk/gtk-general.html#GTK-TIMEOUT-ADD
Salut, Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]