Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_main.c
Log Message:
more checks at runtime if e is ok - ie evas and ecore_evas supoprt is all
there.
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_main.c,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -3 -r1.144 -r1.145
--- e_main.c 12 Jan 2006 02:12:21 -0000 1.144
+++ e_main.c 23 Jan 2006 15:52:47 -0000 1.145
@@ -354,11 +354,61 @@
}
if (!ecore_evas_engine_type_supported_get(ECORE_EVAS_ENGINE_SOFTWARE_X11))
{
- e_error_message_show(_("Enlightenment found ecore_evas doesnt support
Software X11\n"
+ e_error_message_show(_("Enlightenment found ecore_evas doesn't support
the Software X11\n"
"rendering in Evas. Please check your
installation of Evas and\n"
- "Ecore and check they support Software X11
rendering."));
+ "Ecore and check they support the Software X11
rendering engine."));
_e_main_shutdown(-1);
}
+ if
(!ecore_evas_engine_type_supported_get(ECORE_EVAS_ENGINE_SOFTWARE_BUFFER))
+ {
+ e_error_message_show(_("Enlightenment found ecore_evas doesn't support
the Software Buffer\n"
+ "rendering in Evas. Please check your
installation of Evas and\n"
+ "Ecore and check they support the Software
Buffer rendering engine."));
+ _e_main_shutdown(-1);
+ }
+ {
+ Ecore_Evas *ee;
+ Evas_Object *im;
+ char buf[4096];
+
+ ee = ecore_evas_buffer_new(1, 1);
+ if (!ee)
+ {
+ e_error_message_show(_("Enlightenment found evas can't create a
buffer canvas. Please check\n"
+ "Evas has Software Buffer engine
support.\n"));
+ _e_main_shutdown(-1);
+ }
+ im = evas_object_image_add(ecore_evas_get(ee));
+
+ snprintf(buf, sizeof(buf), "%s/data/images/test.png",
e_prefix_data_get());
+ evas_object_image_file_set(im, buf, NULL);
+ if (evas_object_image_load_error_get(im) != EVAS_LOAD_ERROR_NONE)
+ {
+ e_error_message_show(_("Enlightenment found evas can't load PNG
files. Check Evas has PNG\n"
+ "loader support.\n"));
+ _e_main_shutdown(-1);
+ }
+
+ snprintf(buf, sizeof(buf), "%s/data/images/test.jpg",
e_prefix_data_get());
+ evas_object_image_file_set(im, buf, NULL);
+ if (evas_object_image_load_error_get(im) != EVAS_LOAD_ERROR_NONE)
+ {
+ e_error_message_show(_("Enlightenment found evas can't load JPEG
files. Check Evas has JPEG\n"
+ "loader support.\n"));
+ _e_main_shutdown(-1);
+ }
+
+ snprintf(buf, sizeof(buf), "%s/data/images/test.edj",
e_prefix_data_get());
+ evas_object_image_file_set(im, buf, "images/0");
+ if (evas_object_image_load_error_get(im) != EVAS_LOAD_ERROR_NONE)
+ {
+ e_error_message_show(_("Enlightenment found evas can't load EET
files. Check Evas has EET\n"
+ "loader support.\n"));
+ _e_main_shutdown(-1);
+ }
+ evas_object_del(im);
+ ecore_evas_free(ee);
+ }
_e_main_shutdown_push(ecore_evas_shutdown);
/* init the enlightenment thumbnailing system */
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs