[Sugar-devel] Activity title update

Tomeu Vizoso tomeu at sugarlabs.org
Mon Jul 5 09:04:48 EDT 2010


On Sun, Jul 4, 2010 at 17:08, Bernie Innocenti <bernie at codewiz.org> wrote:
> El Fri, 02-07-2010 a las 08:36 +0000, Sascha Silbe escribió:
>
>> FWIW, in an unrelated project I'm using the "changed" signal and have not
>> noticed any missing updates so far (except for SpinButtons which should
>> have been fixed in GTK by now IIRC).
>
> The "changed" signal fires on each keystroke. We can't use this event
> directly, because updating metadata in the datastore causes a ~1sec
> freeze on slow hardware such as the XO-1. Also, probably due to event
> ping-pong, the cursor gets reset to the beginning of the edit-field and
> all interim keystrokes end up in the wrong position.
>
> The old approach was to listen for "changed" with a 1-second timeout to
> trigger the metadata update. The timeout logic was also buggy, which is
> what the patch applied in git fixes.
>
> I can't believe GTK wouldn't offer a reliable way to tell when a user
> has finished changing an edit widget.

Guess I'm a bit late, but I think I have heard this before and I'm not
sure what means to "has finished changing an edit widget". Do you know
of another GUI toolkit with such a signal?

Thanks,

Tomeu

> --
>   // Bernie Innocenti - http://codewiz.org/
>  \X/  Sugar Labs       - http://sugarlabs.org/
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>


More information about the Sugar-devel mailing list