[Sugar-devel] [DESIGN] Double clicks on Journal, Favorites view and Activity List view launches 2 or more instances

mabente mabente at paraguayeduca.org
Wed Jun 2 09:59:19 EDT 2010


Hello everyone,

As the subject says, there is a multiple instancing problem while double
clicking on Journal entries, Favorite Act icons and Act List entries.

The problem is hard to reproduce on desktop PCs, but extremely easy on
less powerful computers like XOs.

I think the problem is that, the code handling the icon click events runs
way faster than the Activity launching process, therefore many instances
are
being called before the Activity windows open, grabbing the focus. In the
practice, an aggressive clicking period just saturate the system and make
Sugar freeze.

My first approach (as matter of testing) was to give an exclusive time
frame for each click event, ignoring any other click event during that time
frame.

Here is the code for the Journal Entries,
http://oficina.paraguayeduca.org/~mabente/patches/sugar/journaliconsclick/0001-Click-on-journal-icons-with-a-exclusive-time-frame.patch

Any other ideas on how to approach this problem (hopefully more general or
elegant) ?







More information about the Sugar-devel mailing list