Re: Best practice query: Entry field "user's done editing" handling?
- From: Nicola Fontana <ntd entidi it>
- To: "A. Walton" <awalton gnome org>
- Cc: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: Best practice query: Entry field "user's done editing" handling?
- Date: Tue, 24 Dec 2013 11:14:49 +0100
Il Mon, 23 Dec 2013 22:19:28 -0800 "A. Walton" <awalton gnome org> scrisse:
Frankly I don't see what's wrong with making it instant apply from the
description. Connect to the GtkEditable::changed signal, throw in a short
timeout that gets reset any time someone changes the field. If they have
stopped changing the field for more than some amount of time, say half a
second, then "commit the change" - do whatever you have to do with it
(validate it, send it to a server, write it to a file, etc.)
This is an excerpt directly taken from the doc you are pointing out:
"Do not attempt to validate or apply changes caused by editing a text
field control until the user has moved focus to a different control in
the window, or the window is closed. Validating after each keypress is
usually annoying and unnecessary. "
Ciao.
--
Nicola
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]