Update of /cvsroot/freevo/freevo/skins/dischi1
In directory sc8-pr-cvs1:/tmp/cvs-serv10293
Modified Files:
listing_area.py view_area.py
Log Message:
Small changes to integrate the audio player
Index: listing_area.py
===================================================================
RCS file: /cvsroot/freevo/freevo/skins/dischi1/listing_area.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** listing_area.py 2 Mar 2003 19:03:42 -0000 1.3
--- listing_area.py 5 Mar 2003 21:56:10 -0000 1.4
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.4 2003/03/05 21:56:10 dischi
+ # Small changes to integrate the audio player
+ #
# Revision 1.3 2003/03/02 19:03:42 dischi
# Add [] for directories
***************
*** 178,191 ****
! def update_content_needed(self, settings, menuw):
"""
check if the content needs an update
"""
! menu = menuw.menustack[-1]
! if self.last_choices[0] != menu.selected:
return TRUE
i = 0
! for choice in menuw.menu_items:
if self.last_choices[1][i] != choice:
return TRUE
--- 181,193 ----
! def update_content_needed(self):
"""
check if the content needs an update
"""
! if self.last_choices[0] != self.menu.selected:
return TRUE
i = 0
! for choice in self.menuw.menu_items:
if self.last_choices[1][i] != choice:
return TRUE
***************
*** 193,202 ****
! def update_content(self, settings, menuw):
"""
update the listing area
"""
- menu = menuw.menustack[-1]
layout = self.layout
area = self.area_val
--- 195,206 ----
! def update_content(self):
"""
update the listing area
"""
+ menuw = self.menuw
+ menu = self.menu
+ settings = self.settings
layout = self.layout
area = self.area_val
Index: view_area.py
===================================================================
RCS file: /cvsroot/freevo/freevo/skins/dischi1/view_area.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** view_area.py 2 Mar 2003 11:46:32 -0000 1.2
--- view_area.py 5 Mar 2003 21:56:12 -0000 1.3
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.3 2003/03/05 21:56:12 dischi
+ # Small changes to integrate the audio player
+ #: view_area.py,v $
# Revision 1.2 2003/03/02 11:46:32 dischi
# Added GetPopupBoxStyle to return popup box styles to the gui
***************
*** 58,80 ****
! def update_content_needed(self, settings, menuw):
"""
check if the content needs an update
"""
! menu = menuw.menustack[-1]
image = None
! if hasattr(menu.selected, 'image') and menu.selected.image:
! image = menu.selected.image
return image != self.image
! def update_content(self, settings, menuw):
"""
update the view area
"""
! menu = menuw.menustack[-1]
! item = menu.selected
layout = self.layout
--- 61,82 ----
! def update_content_needed(self):
"""
check if the content needs an update
"""
! item = self.item
image = None
! if hasattr(item, 'image') and item.image:
! image = item.image
return image != self.image
! def update_content(self):
"""
update the view area
"""
! item = self.item
layout = self.layout
***************
*** 82,91 ****
content = self.calc_geometry(layout.content, copy_object=TRUE)
! if content.types.has_key(menu.selected.type):
! val = content.types[menu.selected.type]
else:
val = content.types['default']
! if hasattr(menu.selected, 'image') and item.image:
self.image = item.image
else:
--- 84,93 ----
content = self.calc_geometry(layout.content, copy_object=TRUE)
! if content.types.has_key(item.type):
! val = content.types[item.type]
else:
val = content.types['default']
! if hasattr(item, 'image') and item.image:
self.image = item.image
else:
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog