From: <enl...@li...> - 2005-12-30 14:42:43
|
Enlightenment CVS committal Author : devilhorns Project : e_modules Module : tclock Dir : e_modules/tclock Modified Files: e_mod_main.c Log Message: Fix Config call for current container. Better trapping =================================================================== RCS file: /cvsroot/enlightenment/e_modules/tclock/e_mod_main.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- e_mod_main.c 30 Dec 2005 13:13:38 -0000 1.5 +++ e_mod_main.c 30 Dec 2005 14:42:33 -0000 1.6 @@ -84,12 +84,15 @@ { Evas_List *l; TClock *t; - TClock_Face *tf; t = module->data; + if (!t) return 0; + if (!t->faces) return 0; for (l = t->faces; l; l = l->next) { + TClock_Face *tf; tf = l->data; + if (!tf) return 0; if (tf->con == e_container_current_get(e_manager_current_get())) { /* Configure Clock */ |