Hello Natalia,

sorry for my slow reply and thanks a bunch for your analysis. The spinner is 
intended to only "unmask" itself when there
is a operation that takes a certain amount of time. The refresh is very quick 
so ideally it would be below this threshold.

The spinner is implemented as a "SpinnerNotebook" in 
ui/gtk3/widgets/spinner.py". Check the "show_spinner()" and
"hide_spinner()" and "_unmask_spinner()" code there. Unfortunately it appears 
like the implementation is buggy and
it will unconditionally switch to the notebook page with the spinner even if 
the operation is very quick. 

I think the ideal fix is to ensure that the notebook page is only changed when 
the timeout happens and also that the
timeout id is saved in show_spinner and removed in hide_spinner if the 
timeout has not yet fired. The current timeout of 100ms is probably a bit low, 
would be nice to know if there is
research data for a better one, my gutfeeling is that ~250ms - 500ms is a 
better default.  Plus a test for this new
code :) 

I hope this helps getting started, if there are any questions or concerns with 
the approach, I'm happy to talk about it on irc
or mumble.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/965093

Title:
  the software centre flash

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/965093/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to