GNOME Bugzilla – Bug 632868
VolumeIndicator: Wrong icon on startup when output is muted
Last modified: 2010-10-22 14:05:33 UTC
To reproduce: mute the volume, restart the shell.
Created attachment 172983 [details] [review] VolumeIndicator: Set correct icon on startup If the output is muted, the correct icon is set and immediately replaced with the icon indicating the unmuted volume level on startup. Fix by moving the check for the muted state below the update of the initial volume and removing a duplicate call to setIcon().
Review of attachment 172983 [details] [review]: This patch is wrong. _volumeChanged should not update the icon if volume is muted (as pulseaudio API allows the volume to change without changing the mute switch, so in theory it could happen). The real correction is in _volumeChanged and makes order irrelevant. Patch will follow soon.
Created attachment 173000 [details] [review] Fix audio volume icon _volumeChanged should not update the icon if the sink is muted. Fixes the case when shell is started with a muted sink (_mutedChanged is called before _volumeChanged).
Review of attachment 173000 [details] [review]: You missed the duplicated call to setIcon() in _readOutput(). Did you actually test your patch?
Created attachment 173005 [details] [review] Fix audio volume icon _volumeChanged should not update the icon if the sink is muted, and _readOutput should not call setIcon (implied by _mutedChanged and _volumeChanged). Fixes the case when shell is started with a muted sink (_mutedChanged is called before _volumeChanged).
Review of attachment 173005 [details] [review]: OK