On Thu, 25 Jul 2002 08:25:22 -0700 (PDT) Harring Figueiredo <harringf yahoo com> wrote:
Here is the dilema. How do I know when the user has finshed entering the text into a GtkEntry ? File Name: +---------------------------------+ +--------+ | | | Browse | +---------------------------------+ +--------+ The user can either browse (using the FileSelection) or he can type the file name. I already got the file name from the "Browse" working. But I am still having difficulties "knowing" when the user has finiehd typing the file name or done browsing so that I can check if the filename is valid etc...
You could try starting a timeout in the "changed" handler. Every time that you receive a "changed" event, reset the timer. This way, the timeout won't be activated until the user hasn't pressed any key for some time. Roland -- R.F. Smith /"\ ASCII Ribbon Campaign r s m i t h @ x s 4 a l l . n l \ / No HTML/RTF in email http://www.xs4all.nl/~rsmith/ X No Word docs in email / \ Respect for open standards
Attachment:
pgpRFqyyrlFCX.pgp
Description: PGP signature