Exemplo n.º 1
0
 def on_drop_received(self, source, target, data):
     Bus.pub(self.BUSNAME, "playlist_changed", source)
     print "on_drop_received: sl: %s, target: %s, data: %s" % (source.props.name, target, data)
Exemplo n.º 2
0
 def on_playlist_added(self, manager, source):
     Bus.pub(self.BUSNAME, "playlist_added", source)
     self.sourcescb.append(source.connect("status-changed", self.on_status_changed))
     print "playlist-added: %s" % source.props.name
Exemplo n.º 3
0
 def on_playlist_created(self, manager, source):
     Bus.pub(self.BUSNAME, "playlist_created", source)
     print "playlist-created: %s" % source.props.name
Exemplo n.º 4
0
 def on_status_changed(self, source):
     if self.active:
         Bus.pub(self.BUSNAME, "playlist_changed", self.shell, self.db, source)
         print "status-changed: %s" % source.props.name