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

Modified Files:
        theme_engine.py 
Log Message:
add alpha support for images

Index: theme_engine.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/gui/theme_engine.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** theme_engine.py     31 Dec 2004 11:57:41 -0000      1.14
--- theme_engine.py     1 Jan 2005 17:04:55 -0000       1.15
***************
*** 161,164 ****
--- 161,167 ----
              if val == 'line_height':
                  return -1
+             if not scale:
+                 return int(val)
+             
              new_val = ''
  
***************
*** 355,358 ****
--- 358,362 ----
      'hours_per_page': ('int',  3),
      'color'    : ('col',  0),
+     'alpha'    : ('int',  0),
      'bgcolor'  : ('col',  0),
      'size'     : ('int',  3),
***************
*** 878,883 ****
          self.type = 'image'
          XML_data.__init__(self, ('x', 'y', 'width', 'height', 'image',
!                                  'filename', 'label', 'visible'))
  
      def prepare(self, color, search_dirs, image_names):
          """
--- 882,889 ----
          self.type = 'image'
          XML_data.__init__(self, ('x', 'y', 'width', 'height', 'image',
!                                  'filename', 'label', 'visible', 'alpha'))
!         self.alpha = None
  
+         
      def prepare(self, color, search_dirs, image_names):
          """
***************
*** 896,900 ****
  
  
- 
  class Rectangle(XML_data):
      """
--- 902,905 ----
***************
*** 1254,1258 ****
  
  
- 
      def fxd_callback(self, fxd, node):
          """
--- 1259,1262 ----



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to