summaryrefslogtreecommitdiff
path: root/mate-volume-control/gvc-applet.h
diff options
context:
space:
mode:
authorMoritz Bruder <[email protected]>2017-04-28 09:50:52 +0200
committerMoritz Bruder <[email protected]>2017-04-28 13:21:23 +0200
commitb005276f2bb281b1bc2d1ef4ba18cdd43294d58f (patch)
tree965304428145d3b6283ba53feb34f7846ff3a0bd /mate-volume-control/gvc-applet.h
parentba5147eb0b08f19bfd55fe8d348c0cb2409fe26f (diff)
downloadmate-media-b005276f2bb281b1bc2d1ef4ba18cdd43294d58f.tar.bz2
mate-media-b005276f2bb281b1bc2d1ef4ba18cdd43294d58f.tar.xz
applet: fix minor rounding mistakes
The chosen volume step increment isn't necessarily an integer. The volume however is stored as integer. Whenever the volume is synced back from the mixer decimal digits may be cut off behind the dot. This commit tries to counteract the effect by rounding to hundreths of the maximum volume when syncing back from the mixer. As the volume is shown in percent the new behavior should be more reasonable to the user. There are no more irregular jumps and there is no additional 99% step.
Diffstat (limited to 'mate-volume-control/gvc-applet.h')
0 files changed, 0 insertions, 0 deletions