Add some safety checks in case mime_handler_new returns NULL.

SVN revision: 32074
This commit is contained in:
Christopher Michael 2007-10-14 18:16:44 +00:00
parent a3908c38aa
commit 44f2074c49
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ e_bg_init(void)
"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)

View File

@ -41,7 +41,7 @@ e_theme_init(void)
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 */