Enlightenment CVS committal
Author : devilhorns
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_bg.c e_theme.c
Log Message:
Add some safety checks in case mime_handler_new returns NULL.
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_bg.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -3 -r1.32 -r1.33
--- e_bg.c 14 Oct 2007 16:09:51 -0000 1.32
+++ e_bg.c 14 Oct 2007 18:16:44 -0000 1.33
@@ -22,7 +22,7 @@
"enlightenment/background",
e_bg_handler_set, NULL,
e_bg_handler_test, NULL);
- e_fm2_mime_handler_glob_add(bg_hdl, "*.edj");
+ if (bg_hdl) e_fm2_mime_handler_glob_add(bg_hdl, "*.edj");
/* Register files in use */
if (e_config->desktop_default_background)
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_theme.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -3 -r1.29 -r1.30
--- e_theme.c 14 Oct 2007 17:31:27 -0000 1.29
+++ e_theme.c 14 Oct 2007 18:16:44 -0000 1.30
@@ -41,7 +41,7 @@
theme_hdl = e_fm2_mime_handler_new(_("Set As Theme"),
"enlightenment/themes",
e_theme_handler_set, NULL,
e_theme_handler_test, NULL);
- e_fm2_mime_handler_glob_add(theme_hdl, "*.edj");
+ if (theme_hdl) e_fm2_mime_handler_glob_add(theme_hdl, "*.edj");
/* this is a fallback that is ALWAYS there - if all fails things will */
/* always fall back to the default theme. the rest after this are config */
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs