~ubuntu-branches/ubuntu/natty/vlc/natty

« back to all changes in this revision

Viewing changes to extras/misc/mpris.py

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2010-06-25 01:09:16 UTC
  • mfrom: (1.1.30 upstream)
  • Revision ID: james.westby@ubuntu.com-20100625010916-asxhep2mutg6g6pd
Tags: 1.1.0-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - build and install the libx264 plugin
  - add Xb-Npp header to vlc package
  - Add apport hook to include more vlc dependencies in bug reports
* Drop xulrunner patches.
* Drop 502_xulrunner_191.diff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
173
173
def Shuffle(widget):
174
174
    global shuffle
175
175
    shuffle = not shuffle
176
 
    tracklist.Random(shuffle)
 
176
    tracklist.SetRandom(shuffle)
177
177
 
178
178
def Loop(widget):
179
179
    global loop
180
180
    loop = not loop
181
 
    tracklist.Loop(loop)
 
181
    tracklist.SetLoop(loop)
182
182
 
183
183
# update status display
184
184
def update(widget):
212
212
    GetPlayStatus(0)
213
213
 
214
214
# callback for volume change
215
 
def volchange(widget, data):
 
215
def volchange(widget):
216
216
    player.VolumeSet(vol.get_value_as_int(), reply_handler=(lambda *args: None), error_handler=(lambda *args: None))
217
217
 
218
218
# callback for position change
336
336
bt_repeat.connect('clicked',    Repeat)
337
337
bt_shuffle.connect('clicked',   Shuffle)
338
338
exp.connect('activate',         expander)
339
 
vol.connect('change-value',     volchange)
340
 
vol.connect('scroll-event',     volchange)
 
339
vol.connect('changed',          volchange)
341
340
time_s.connect('adjust-bounds', timechange)
342
341
audioicon.set_events(gtk.gdk.BUTTON_PRESS_MASK) # hack for the bottom right icon
343
342
audioicon.connect('button_press_event', icon_clicked)