forked from enlightenment/enlightenment
Add some safety checks in case mime_handler_new returns NULL.
SVN revision: 32074
This commit is contained in:
parent
a3908c38aa
commit
44f2074c49
|
@ -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)
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue