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)
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
def on_playlist_created(self, manager, source): Bus.pub(self.BUSNAME, "playlist_created", source) print "playlist-created: %s" % source.props.name
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