Enlightenment CVS committal
Author : tsauerbeck
Project : misc
Module : embrace
Dir : misc/embrace/src
Modified Files:
embrace.c embrace.h
Log Message:
added config switch 'evas_engine'. set to 'gl' to make Embrace run off the evas gl x11
engine
===================================================================
RCS file: /cvsroot/enlightenment/misc/embrace/src/embrace.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- embrace.c 22 Apr 2004 17:56:50 -0000 1.14
+++ embrace.c 23 Apr 2004 16:02:53 -0000 1.15
@@ -1,5 +1,5 @@
/*
- * $Id: embrace.c,v 1.14 2004/04/22 17:56:50 tsauerbeck Exp $
+ * $Id: embrace.c,v 1.15 2004/04/23 16:02:53 tsauerbeck Exp $
*
* Copyright (C) 2004 Embrace project.
*
@@ -294,8 +294,14 @@
assert (e);
assert (edb);
+ if ((str = e_db_str_get (edb, "/" PACKAGE "/evas_engine"))) {
+ snprintf (e->cfg.evas_engine, sizeof (e->cfg.evas_engine),
+ "%s", str);
+ free (str);
+ }
+
if (!(str = e_db_str_get (edb, "/" PACKAGE "/theme")))
- return false;
+ str = strdup ("default");
/* look for themes in various places...
* try ~ first */
@@ -530,7 +536,14 @@
char path[PATH_MAX + 1];
assert (e);
- if (!(e->gui.ee = ecore_evas_software_x11_new (NULL, 0, 0, 0, 0, 0)))
+#ifdef HAVE_ECORE_EVAS_GL
+ if (!strcasecmp (e->cfg.evas_engine, "gl"))
+ e->gui.ee = ecore_evas_gl_x11_new (NULL, 0, 0, 0, 0, 0);
+ else
+#endif
+ e->gui.ee = ecore_evas_software_x11_new (NULL, 0, 0, 0, 0, 0);
+
+ if (!e->gui.ee)
return false;
ecore_evas_title_set (e->gui.ee, "Embrace");
===================================================================
RCS file: /cvsroot/enlightenment/misc/embrace/src/embrace.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- embrace.h 9 Apr 2004 09:35:16 -0000 1.3
+++ embrace.h 23 Apr 2004 16:02:53 -0000 1.4
@@ -1,5 +1,5 @@
/*
- * $Id: embrace.h,v 1.3 2004/04/09 09:35:16 tsauerbeck Exp $
+ * $Id: embrace.h,v 1.4 2004/04/23 16:02:53 tsauerbeck Exp $
*
* Copyright (C) 2004 Embrace project.
*
@@ -28,6 +28,7 @@
typedef struct {
char theme[PATH_MAX + 1];
+ char evas_engine[255];
} Config;
typedef struct {
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs