Update of /cvsroot/freevo/freevo/src/plugins/idlebar
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5003

Modified Files:
        __init__.py 
Log Message:
redraw not only in main, redraw when skin is active

Index: __init__.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/plugins/idlebar/__init__.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** __init__.py 25 Apr 2004 12:38:22 -0000      1.16
--- __init__.py 31 May 2004 10:43:20 -0000      1.17
***************
*** 19,22 ****
--- 19,25 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.17  2004/05/31 10:43:20  dischi
+ # redraw not only in main, redraw when skin is active
+ #
  # Revision 1.16  2004/04/25 12:38:22  dischi
  # move idlebar image to background
***************
*** 127,131 ****
          """
          plugin.DaemonPlugin.__init__(self)
!         self.poll_interval   = 3000
          self.plugins = None
          plugin.register(self, 'idlebar')
--- 130,135 ----
          """
          plugin.DaemonPlugin.__init__(self)
!         self.poll_interval  = 3000
!         self.poll_menu_only = False
          self.plugins = None
          plugin.register(self, 'idlebar')
***************
*** 159,166 ****
          # draw the cached barimage
          if self.bar:
!             osd.drawimage(self.bar, (0, 0, w, h), background=True )
  
          if not self.plugins:
              self.plugins = plugin.get('idlebar')
          x = osd.x + 10
          for p in self.plugins:
--- 163,171 ----
          # draw the cached barimage
          if self.bar:
!             osd.drawimage(self.bar, (0, 0, w, h), background=True)
  
          if not self.plugins:
              self.plugins = plugin.get('idlebar')
+ 
          x = osd.x + 10
          for p in self.plugins:
***************
*** 176,188 ****
          plugin wants to redraw)
          """
!         if plugin.isevent(event) == 'IDENTIFY_MEDIA':
!             skin.get_singleton().redraw()
          return False
  
      def poll(self):
          """
          update the idlebar every 30 secs even if nothing happens
          """
!         skin.get_singleton().redraw()
  
  
--- 181,195 ----
          plugin wants to redraw)
          """
!         if plugin.isevent(event) == 'IDENTIFY_MEDIA' and skin.active():
!             skin.redraw()
          return False
  
+ 
      def poll(self):
          """
          update the idlebar every 30 secs even if nothing happens
          """
!         if skin.active():
!             skin.redraw()
  
  
***************
*** 523,525 ****
          else:
              image = os.path.join(config.IMAGE_DIR, self.image)
!         return osd.draw_image(image, (x, osd.y + 5, -1, 75))[0]
--- 530,532 ----
          else:
              image = os.path.join(config.IMAGE_DIR, self.image)
!         return osd.drawimage(image, (x, osd.y + 5, -1, 75))[0]



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to