Enlightenment CVS committal Author : kwo Project : e16 Module : e
Dir : e16/e/src Modified Files: backgrounds.c iclass.c Log Message: Add some checks to avoid imlib warnings. =================================================================== RCS file: /cvs/e/e16/e/src/backgrounds.c,v retrieving revision 1.88 retrieving revision 1.89 diff -u -3 -r1.88 -r1.89 --- backgrounds.c 17 Jan 2007 01:10:42 -0000 1.88 +++ backgrounds.c 15 Feb 2007 03:30:17 -0000 1.89 @@ -572,14 +572,16 @@ { if (!bg->bg.real_file) bg->bg.real_file = ThemeFileFind(bg->bg.file, 0); - bg->bg.im = EImageLoad(bg->bg.real_file); + if (bg->bg.real_file) + bg->bg.im = EImageLoad(bg->bg.real_file); } if (bg->top.file && !bg->top.im) { if (!bg->top.real_file) bg->top.real_file = ThemeFileFind(bg->top.file, 0); - bg->top.im = EImageLoad(bg->top.real_file); + if (bg->top.real_file) + bg->top.im = EImageLoad(bg->top.real_file); } #if ENABLE_COLOR_MODIFIERS =================================================================== RCS file: /cvs/e/e16/e/src/iclass.c,v retrieving revision 1.112 retrieving revision 1.113 diff -u -3 -r1.112 -r1.113 --- iclass.c 17 Jan 2007 01:10:43 -0000 1.112 +++ iclass.c 15 Feb 2007 03:30:18 -0000 1.113 @@ -285,8 +285,8 @@ /* not loaded, load and setup */ if (!is->real_file) is->real_file = ThemeFileFind(is->im_file, 0); - - is->im = EImageLoad(is->real_file); + if (is->real_file) + is->im = EImageLoad(is->real_file); if (!is->im) { Eprintf ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs