[vlc-devel] commit: mpris.py: fix volume handling (wrong event). ( Rémi Duraffort )

git version control git at videolan.org
Fri Jul 10 15:20:15 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Jul 10 15:19:19 2009 +0200| [760fece1a322216863909ceabcc1afbc74c74429] | committer: Rémi Duraffort 

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=760fece1a322216863909ceabcc1afbc74c74429
---

 extras/misc/mpris.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/extras/misc/mpris.py b/extras/misc/mpris.py
index 1c5bf71..32aa791 100755
--- a/extras/misc/mpris.py
+++ b/extras/misc/mpris.py
@@ -212,7 +212,7 @@ def update(widget):
     GetPlayStatus(0)
 
 # 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))
 
 # callback for position change
@@ -336,8 +336,7 @@ bt_loop.connect('clicked',      Loop)
 bt_repeat.connect('clicked',    Repeat)
 bt_shuffle.connect('clicked',   Shuffle)
 exp.connect('activate',         expander)
-vol.connect('change-value',     volchange)
-vol.connect('scroll-event',     volchange)
+vol.connect('changed',          volchange)
 time_s.connect('adjust-bounds', timechange)
 audioicon.set_events(gtk.gdk.BUTTON_PRESS_MASK) # hack for the bottom right icon
 audioicon.connect('button_press_event', icon_clicked) 




More information about the vlc-devel mailing list