Merge lp://staging/~sacridex/ubuntu/precise/unity-greeter/purple-background-on-startup-fix into lp://staging/ubuntu/precise/unity-greeter
Status: | Work in progress |
---|---|
Proposed branch: | lp://staging/~sacridex/ubuntu/precise/unity-greeter/purple-background-on-startup-fix |
Merge into: | lp://staging/ubuntu/precise/unity-greeter |
Diff against target: |
49 lines (+7/-3) 3 files modified
src/background.vala (+1/-0) src/main-window.vala (+5/-2) src/user-list.vala (+1/-1) |
To merge this branch: | bzr merge lp://staging/~sacridex/ubuntu/precise/unity-greeter/purple-background-on-startup-fix |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Terry | Needs Fixing | ||
Bryce Harrington | patch | Approve | |
Robert Ancell | Pending | ||
Ubuntu branches | Pending | ||
Review via email: mp+102679@code.staging.launchpad.net |
Description of the change
I think there is no synchronisation issue.
But there is too much stuff to be done between the initial background color and the actual background image is drawn.
There are 2 things that take longer than 0.2 seconds: launching Canberra and playing the startup sound takes about 0.26 seconds and LightDM.get_layout () (line 81 in menubar.vala) takes about 0.20 seconds.
So there was about a half second gap between those two backgrounds, unfotunately a ~0.1 second gap still remains.
The fact that the standard purple image is loaded at all, is a problem caused by appending the *other user to the user_list(which is the first user added, so the purple image is drawn) and then removing it later(which triggers a background redraw of the actual image).
But still, unity-greeter will fade from the initial background color to the actual background image, because the fade time is set and i am not able to disable it and reset it later. :(
But in my opinion that is no problem, the fade in actually looks nice.
I disabled canberra and loaded the LightDM standard layout earlier. Also i made the Guest background image relying on the Gsettings value of LightDM User.
Unfortunately there is no more background image for the *other user, otherwise this image would be drawn(as described above).
===============
Another UPDATE:
I reverted all the KeyFile parts.
The diff is showing some unfinished merge work in background.vala.