Commit 760fece1 authored by Rémi Duraffort's avatar Rémi Duraffort

mpris.py: fix volume handling (wrong event).

parent fb98def5
...@@ -212,7 +212,7 @@ def update(widget): ...@@ -212,7 +212,7 @@ def update(widget):
GetPlayStatus(0) GetPlayStatus(0)
# callback for volume change # callback for volume change
def volchange(widget, data): def volchange(widget):
player.VolumeSet(vol.get_value_as_int(), reply_handler=(lambda *args: None), error_handler=(lambda *args: None)) player.VolumeSet(vol.get_value_as_int(), reply_handler=(lambda *args: None), error_handler=(lambda *args: None))
# callback for position change # callback for position change
...@@ -336,8 +336,7 @@ bt_loop.connect('clicked', Loop) ...@@ -336,8 +336,7 @@ bt_loop.connect('clicked', Loop)
bt_repeat.connect('clicked', Repeat) bt_repeat.connect('clicked', Repeat)
bt_shuffle.connect('clicked', Shuffle) bt_shuffle.connect('clicked', Shuffle)
exp.connect('activate', expander) exp.connect('activate', expander)
vol.connect('change-value', volchange) vol.connect('changed', volchange)
vol.connect('scroll-event', volchange)
time_s.connect('adjust-bounds', timechange) time_s.connect('adjust-bounds', timechange)
audioicon.set_events(gtk.gdk.BUTTON_PRESS_MASK) # hack for the bottom right icon audioicon.set_events(gtk.gdk.BUTTON_PRESS_MASK) # hack for the bottom right icon
audioicon.connect('button_press_event', icon_clicked) audioicon.connect('button_press_event', icon_clicked)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment