Merge lp:~dylanmccall/indicator-sound/notifications-use-new-volume into lp:~indicator-applet-developers/indicator-sound/trunk_3
Status: | Merged |
---|---|
Merge reported by: | Conor Curran |
Merged at revision: | not available |
Proposed branch: | lp:~dylanmccall/indicator-sound/notifications-use-new-volume |
Merge into: | lp:~indicator-applet-developers/indicator-sound/trunk_3 |
Diff against target: |
179 lines (+88/-21) 5 files modified
src/Makefile.am (+4/-0) src/device.c (+2/-15) src/sound-state-manager.c (+8/-6) src/sound-state.c (+43/-0) src/sound-state.h (+31/-0) |
To merge this branch: | bzr merge lp:~dylanmccall/indicator-sound/notifications-use-new-volume |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Conor Curran (community) | Approve | ||
Review via email: mp+56284@code.launchpad.net |
Description of the change
This fixes the issue in bug #748831. Further pixel counting revealed that the issue was not the entire notification, but the icon selected for the notification. sound_state_
The only reason for calling this function is to figure out which of the four sound levels the volume fits in. So, I split the code to get a SoundState object from the volume into its own function (sound_
The notification function seems to already make the assumption that it isn't going to be called for anything with SoundState == UNAVAILABLE, so I'm sticking to that assumption here.
I couldn't find a particularly nice place to put the new sound_state function, so I made a new pair of source files: sound-state.c and sound-state.h.
While I was at it, I happened to change the function to use the notification-
Looks good to me ! Thanks Dylan