handle errors and use eina error print.

SVN revision: 39066
This commit is contained in:
Carsten Haitzler 2009-02-18 00:29:07 +00:00
parent d6c75b5cad
commit 4aff7b184a
2 changed files with 6 additions and 2 deletions

View File

@ -214,7 +214,11 @@ elm_init(int argc, char **argv)
#ifdef HAVE_ELEMENTARY_X
int val = 1000;
ecore_x_init(NULL);
if (!ecore_x_init(NULL))
{
EINA_ERROR_PERR("elementary: ERROR. Cannot connect to X11 display. check $DISPLAY variable\n");
exit(1);
}
if (!ecore_x_screen_is_composited(0))
_elm_config->compositing = 0;
_elm_atom_enlightenment_scale = ecore_x_atom_get("ENLIGHTENMENT_SCALE");

View File

@ -281,7 +281,7 @@ elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type)
}
if (!win->ee)
{
printf("ELEMENTARY: Error. Cannot create window.\n");
EINA_ERROR_PERR("elementary: ERROR. Cannot create window.\n");
free(win);
return NULL;
}