Update of /cvsroot/freevo/freevo/src/audio In directory sc8-pr-cvs1:/tmp/cvs-serv29255/src/audio
Modified Files: player.py Log Message: Added Viggo Fredriksen's very cool detachbar plugin... it shows a mini-player in the bottom corner of the screen if you detach a music player. Index: player.py =================================================================== RCS file: /cvsroot/freevo/freevo/src/audio/player.py,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** player.py 9 Dec 2003 20:31:58 -0000 1.14 --- player.py 15 Dec 2003 03:53:18 -0000 1.15 *************** *** 10,13 **** --- 10,17 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.15 2003/12/15 03:53:18 outlyer + # Added Viggo Fredriksen's very cool detachbar plugin... it shows a + # mini-player in the bottom corner of the screen if you detach a music player. + # # Revision 1.14 2003/12/09 20:31:58 dischi # keep track of current player *************** *** 77,81 **** --- 81,92 ---- self.player = None self.running = False + self.detachbar = None + def getDetachbar(self): + if self.detachbar == None: + self.detachbar = plugin.getbyname('audio.detachbar') + if self.detachbar == None: + return False + return True def play(self, player=None): *************** *** 108,111 **** --- 119,124 ---- if self.menuw and self.menuw.visible: self.menuw.hide(clear=False) + if self.getDetachbar(): + self.detachbar.hide() self.running = True *************** *** 148,151 **** --- 161,166 ---- self.player.stop() + if self.getDetachbar(): + self.detachbar.stop() self.running = False if self.visible: *************** *** 156,159 **** --- 171,176 ---- if not self.visible: self.visible = 1 + if self.getDetachbar(): + self.detachbar.hide() self.refresh() rc.app(self.player) *************** *** 164,167 **** --- 181,186 ---- self.visible = 0 skin.clear() + if self.getDetachbar(): + self.detachbar.show() rc.app(None) ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Freevo-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog