Update of /cvsroot/freevo/freevo/src/skins/main
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17906

Modified Files:
        main.py 
Log Message:
small update needed for the new gui code

Index: main.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/skins/main/main.py,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -d -r1.39 -r1.40
*** main.py     14 Feb 2004 13:00:39 -0000      1.39
--- main.py     18 Feb 2004 21:54:03 -0000      1.40
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.40  2004/02/18 21:54:03  dischi
+ # small update needed for the new gui code
+ #
  # Revision 1.39  2004/02/14 13:00:39  dischi
  # function to return the settings
***************
*** 400,407 ****
          shadow attributes: visible, color, x, y
          """
- 
          menu = self.__find_current_menu__(widget)
  
!         if menu and menu.skin_settings:
              settings = menu.skin_settings
          else:
--- 403,409 ----
          shadow attributes: visible, color, x, y
          """
          menu = self.__find_current_menu__(widget)
  
!         if menu and hasattr(menu, 'skin_settings') and menu.skin_settings:
              settings = menu.skin_settings
          else:
***************
*** 410,437 ****
          layout = settings.popup
  
!         background = None
! 
          for bg in layout.background:
              if isinstance(bg, xml_skin.Image):
!                 background = ( 'image', bg)
              elif isinstance(bg, xml_skin.Rectangle):
!                 background = ( 'rectangle', bg)
! 
!         button_default  = None
!         button_selected = None
! 
!         spacing = layout.content.spacing
!         color   = layout.content.color
! 
!         if layout.content.types.has_key('default'):
!             button_default = layout.content.types['default']
! 
!         if layout.content.types.has_key('selected'):
!             button_selected = layout.content.types['selected']
  
!         return (background, spacing, color, layout.content.font,
!                 button_default, button_selected)
  
-         
  
      def get_font(self, name):
--- 412,424 ----
          layout = settings.popup
  
!         background = []
          for bg in layout.background:
              if isinstance(bg, xml_skin.Image):
!                 background.append(( 'image', bg))
              elif isinstance(bg, xml_skin.Rectangle):
!                 background.append(( 'rectangle', bg))
  
!         return layout.content, background
  
  
      def get_font(self, name):



-------------------------------------------------------
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