[Sugar-devel] [Dextrose] [PATCH sugar-toolkit] Cursor moves to beginning while trying to edit activity instance name #2608

Sascha Silbe sascha-ml-reply-to-2011-2 at silbe.org
Tue Feb 15 15:34:35 EST 2011


Excerpts from Bernie Innocenti's message of Tue Feb 15 21:19:57 +0100 2011:

> The above patch isn't sufficient in this race-condition between the user
> typing and the metadata update: even if we reset the cursor position to
> the right place, the text that we set back into the widget is likely to
> miss one or two keystrokes from the user.

How is that possible? We don't use threads or multiple processes, so
X events don't get processed while this code runs.

> We must absolutely avoid triggering a save while the user could still be
> typing in the widget, [...]

I agree we should. Saving each minor change to the data store while the
user is still typing is definitely a bad idea.

Sascha

-- 
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 494 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110215/9d1bc598/attachment.pgp>


More information about the Sugar-devel mailing list