Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_engines.c ewl_misc.c
Log Message:
- only init the engine we are using instead of all of them
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_engines.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_engines.c 16 Jun 2006 16:25:54 -0000 1.3
+++ ewl_engines.c 22 Jun 2006 19:21:15 -0000 1.4
@@ -76,12 +76,6 @@
if (!strncmp(file + (len - 3), ".so", 3))
{
file[len - 3] = '\0';
-
- /* XXX FIXME this needs to move osmewhere else, just
- * putting here for now ... */
- /* we create the engine in here such that it gets
- * initialized early */
- ewl_engine_new(file);
ecore_list_append(names, strdup(file));
}
}
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_misc.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -3 -r1.59 -r1.60
--- ewl_misc.c 21 Jun 2006 04:49:22 -0000 1.59
+++ ewl_misc.c 22 Jun 2006 19:21:15 -0000 1.60
@@ -143,6 +143,15 @@
ewl_init_parse_options(argc, argv);
+ /* we create the engine we will be working with here so that it is
+ * initialized before we start to use it. */
+ if (!ewl_engine_new(ewl_config.engine_name))
+ {
+ DERROR("Unable to initialize engine.\n");
+ ewl_shutdown();
+ DRETURN_INT(--ewl_init_count, DLEVEL_STABLE);
+ }
+
if (!edje_init()) {
DERROR("Could not init edje....\n");
evas_shutdown();
@@ -480,16 +489,10 @@
DENTER_FUNCTION(DLEVEL_STABLE);
- /* XXX when the engine init stuff is fixed up this should move below
- * the if statement. Put it here for now to make sure the engines
- * always get init'd */
- engines = ewl_engine_names_get();
-
if (!argc || !argv)
- {
- ecore_list_destroy(engines);
DRETURN(DLEVEL_STABLE);
- }
+
+ engines = ewl_engine_names_get();
i = 0;
while (i < *argc) {
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs