Update of /cvsroot/freevo/freevo/src/skins/main In directory sc8-pr-cvs1:/tmp/cvs-serv29142
Modified Files: area.py Log Message: take icons from theme if available Index: area.py =================================================================== RCS file: /cvsroot/freevo/freevo/src/skins/main/area.py,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** area.py 17 Oct 2003 18:51:33 -0000 1.11 --- area.py 28 Oct 2003 17:54:12 -0000 1.12 *************** *** 28,31 **** --- 28,34 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.12 2003/10/28 17:54:12 dischi + # take icons from theme if available + # # Revision 1.11 2003/10/17 18:51:33 dischi # check for default with description area *************** *** 81,84 **** --- 84,88 ---- import copy + import os import pygame *************** *** 808,813 **** def load_image(self, image, val, redraw=TRUE): """ ! load an image (use self.imagecache """ if isinstance(val, tuple) or isinstance(val, list): w = val[0] --- 812,822 ---- def load_image(self, image, val, redraw=TRUE): """ ! load an image (use self.imagecache) """ + if image.find(config.ICON_DIR) == 0 and image.find(self.settings.icon_dir) == -1: + new_image = os.path.join(self.settings.icon_dir, image[len(config.ICON_DIR)+1:]) + if os.path.isfile(new_image): + image = new_image + if isinstance(val, tuple) or isinstance(val, list): w = val[0] ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Freevo-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog