Update of /cvsroot/freevo/freevo/src/audio
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2058

Modified Files:
        player.py 
Log Message:
better detachbar plugin, does not need stuff in other files now

Index: player.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/audio/player.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** player.py   14 Feb 2004 13:05:03 -0000      1.17
--- player.py   15 Feb 2004 11:18:47 -0000      1.18
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.18  2004/02/15 11:18:47  dischi
+ # better detachbar plugin, does not need stuff in other files now
+ #
  # Revision 1.17  2004/02/14 13:05:03  dischi
  # do not call skin.get_singleton() anymore
***************
*** 84,96 ****
          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):
          global _player_
--- 87,92 ----
          self.player  = None
          self.running = False
  
! 
      def play(self, player=None):
          global _player_
***************
*** 122,127 ****
          if self.menuw and self.menuw.visible:
              self.menuw.hide(clear=False)
-             if self.getDetachbar():
-                 self.detachbar.hide()
  
          self.running = True
--- 118,121 ----
***************
*** 164,169 ****
  
          self.player.stop()
-         if self.getDetachbar():
-             self.detachbar.stop()
          self.running = False
          if self.visible:
--- 158,161 ----
***************
*** 174,179 ****
          if not self.visible:
              self.visible = 1
-             if self.getDetachbar():
-                 self.detachbar.hide()            
              self.refresh()
              rc.app(self.player)
--- 166,169 ----
***************
*** 184,189 ****
              self.visible = 0
              skin.clear()
-             if self.getDetachbar():
-                 self.detachbar.show()
              rc.app(None)
              
--- 174,177 ----



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to