Merge lp:~cjcurran/indicator-sound/protect-against-rogue-property-updates-volume-slider into lp:~indicator-applet-developers/indicator-sound/trunk_3
Proposed by
Conor Curran
Status: | Merged |
---|---|
Approved by: | Ted Gould |
Approved revision: | 217 |
Merged at revision: | 217 |
Proposed branch: | lp:~cjcurran/indicator-sound/protect-against-rogue-property-updates-volume-slider |
Merge into: | lp:~indicator-applet-developers/indicator-sound/trunk_3 |
Diff against target: |
77 lines (+13/-9) 2 files modified
src/slider-menu-item.c (+2/-1) src/volume-widget.c (+11/-8) |
To merge this branch: | bzr merge lp:~cjcurran/indicator-sound/protect-against-rogue-property-updates-volume-slider |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ted Gould (community) | Approve | ||
Review via email:
|
Description of the change
Fixes the bug attached. I found two issues,
1.I was unpacking a double into a boolean on the service side of the volume slider !! (don't know how this was not noticed until now)
Secondly I was not protecting against property updates on the volume slider which are not of the gdouble type. For some reason rogue property updates were being triggered on the slider item when I player started or closed. When trying to extract a double from variant that is not a double you will get 0 and I was in turn then setting the slider value to 0 which in turn triggered the gtk 'value-changed' callback which was then setting the pulse volume to you guessed it 0.
ah
To post a comment you must log in.
review approve
merge approve