Enlightenment CVS committal
Author : dj2
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_main.c
Log Message:
- check the e_menu_init return value
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_main.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- e_main.c 3 Jan 2005 09:34:24 -0000 1.19
+++ e_main.c 4 Jan 2005 01:57:20 -0000 1.20
@@ -131,9 +131,14 @@
/* Init window manager hints */
e_hints_init();
- /* setup menu handlers etc. FIXME: check return value */
- e_menu_init();
-
+ /* setup menu handlers etc. */
+ if (!e_menu_init())
+ {
+ e_error_message_show("Enlightenment cannot initialize the menu
system.\n"
+ "Perhaps you are out of memory?");
+ _e_main_shutdown(-1);
+ }
+ _e_main_shutdown_push(e_menu_shutdown);
/* init generic communications */
if (!ecore_con_init())
{
@@ -210,7 +215,7 @@
_e_main_shutdown(-1);
}
_e_main_shutdown_push(e_atoms_shutdown);
- /* init border system */
+ /* init focus system */
if (!e_focus_init())
{
e_error_message_show("Enlightenment cannot set up its focus system.");
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs