Fix volume button (close #84)
Fix both the icon of the volume button and setting the volume if the mixer does not allow it by using -1 as default value instead of 0.
This commit is contained in:
parent
54717a3491
commit
e63a3f2d4d
2 changed files with 1 additions and 5 deletions
|
@ -181,10 +181,6 @@
|
|||
<property name="tooltip-text" translatable="yes">Adjust the volume</property>
|
||||
<property name="relief">none</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<property name="icons">audio-volume-muted
|
||||
audio-volume-high
|
||||
audio-volume-low
|
||||
audio-volume-medium</property>
|
||||
<signal name="button-press-event" handler="on_headerbar_volume_press" swapped="no"/>
|
||||
<signal name="button-release-event" handler="on_headerbar_volume_release" swapped="no"/>
|
||||
<signal name="value-changed" handler="on_headerbar_volume_changed" swapped="no"/>
|
||||
|
|
|
@ -439,7 +439,7 @@ class Client(Base):
|
|||
if 'time' in status:
|
||||
time = int(status['time'].split(':')[0])
|
||||
# Volume
|
||||
volume = 0
|
||||
volume = -1
|
||||
if 'volume' in status:
|
||||
volume = int(status['volume'])
|
||||
# Error
|
||||
|
|
Loading…
Reference in a new issue