Author: duncan
Date: Sun Feb 18 14:16:07 2007
New Revision: 9241

Modified:
   branches/rel-1/freevo/src/audio/plugins/detachbar.py

Log:
skin.active needs to be checked before a redraw otherwise screensaver will crash


Modified: branches/rel-1/freevo/src/audio/plugins/detachbar.py
==============================================================================
--- branches/rel-1/freevo/src/audio/plugins/detachbar.py        (original)
+++ branches/rel-1/freevo/src/audio/plugins/detachbar.py        Sun Feb 18 
14:16:07 2007
@@ -122,13 +122,15 @@
         update the bar according to showstatus
         """
         if self.status == BAR_SHOW:
-            skin.redraw()
+            if skin.active():
+                skin.redraw()
 
         elif self.status == BAR_IDLE:
             self.status = self.timer()
             if self.status == BAR_HIDE:
                 self.hide()
-            skin.redraw()
+            if skin.active():
+                skin.redraw()
     
 
     def draw(self, (type, object), osd):

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to