Attached is a new engine for ETK with software_x11_16 support.
I'm using it on N800 with success :-)
--
Gustavo Sverzut Barbieri
--------------------------------------
Jabber: [EMAIL PROTECTED]
MSN: [EMAIL PROTECTED]
ICQ#: 17249123
Skype: gsbarbieri
Mobile: +55 (81) 9927 0010
diff --exclude='*~' --exclude='*.lo' --exclude=Makefile.in --exclude=Makefile
--exclude='*.so' --exclude=.libs --exclude='*.Plo' --exclude='*.la'
--exclude='*.a' --exclude='*.o' --exclude=CVS -Naur etk.orig/configure.in
etk.new/configure.in
--- etk.orig/configure.in 2007-06-22 20:35:50.000000000 -0300
+++ etk.new/configure.in 2007-06-22 19:39:37.000000000 -0300
@@ -170,6 +170,7 @@
src/engines/ecore_evas/Makefile
src/engines/ecore_evas_x11/Makefile
src/engines/ecore_evas_software_x11/Makefile
+src/engines/ecore_evas_software_x11_16/Makefile
src/engines/ecore_evas_gl_x11/Makefile
src/engines/ecore_fb/Makefile
src/bin/Makefile
diff --exclude='*~' --exclude='*.lo' --exclude=Makefile.in --exclude=Makefile
--exclude='*.so' --exclude=.libs --exclude='*.Plo' --exclude='*.la'
--exclude='*.a' --exclude='*.o' --exclude=CVS -Naur
etk.orig/src/engines/Makefile.am etk.new/src/engines/Makefile.am
--- etk.orig/src/engines/Makefile.am 2007-06-22 20:35:51.000000000 -0300
+++ etk.new/src/engines/Makefile.am 2007-06-22 19:39:11.000000000 -0300
@@ -3,5 +3,6 @@
SUBDIRS = ecore_evas \
ecore_evas_x11 \
ecore_evas_software_x11 \
+ ecore_evas_software_x11_16 \
ecore_evas_gl_x11 \
ecore_fb
diff --exclude='*~' --exclude='*.lo' --exclude=Makefile.in --exclude=Makefile
--exclude='*.so' --exclude=.libs --exclude='*.Plo' --exclude='*.la'
--exclude='*.a' --exclude='*.o' --exclude=CVS -Naur
etk.orig/src/engines/ecore_evas_software_x11_16/.cvsignore
etk.new/src/engines/ecore_evas_software_x11_16/.cvsignore
--- etk.orig/src/engines/ecore_evas_software_x11_16/.cvsignore 1969-12-31
21:00:00.000000000 -0300
+++ etk.new/src/engines/ecore_evas_software_x11_16/.cvsignore 2007-06-22
19:05:34.000000000 -0300
@@ -0,0 +1,6 @@
+.deps
+.libs
+*.lo
+*.la
+Makefile
+Makefile.in
diff --exclude='*~' --exclude='*.lo' --exclude=Makefile.in --exclude=Makefile
--exclude='*.so' --exclude=.libs --exclude='*.Plo' --exclude='*.la'
--exclude='*.a' --exclude='*.o' --exclude=CVS -Naur
etk.orig/src/engines/ecore_evas_software_x11_16/Makefile.am
etk.new/src/engines/ecore_evas_software_x11_16/Makefile.am
--- etk.orig/src/engines/ecore_evas_software_x11_16/Makefile.am 1969-12-31
21:00:00.000000000 -0300
+++ etk.new/src/engines/ecore_evas_software_x11_16/Makefile.am 2007-06-22
19:07:55.000000000 -0300
@@ -0,0 +1,27 @@
+MAINTAINERCLEANFILES = Makefile Makefile.in
+
+AUTOMAKE_OPTIONS = 1.4 foreign
+
+INCLUDES = -I$(top_srcdir)/src/lib \
+ -I$(top_srcdir)/src/engines/ecore_evas \
+ -I$(top_srcdir)/src/engines/ecore_evas_x11 \
+ -I$(top_srcdir)/src/engines/ecore_evas_software_x11 \
+ -I$(top_srcdir)/src/engines/ecore_evas_software_x11_16 \
+ @EVAS_CFLAGS@ @ECORE_CFLAGS@ @ECORE_X_CFLAGS@ -g -Wall
+
+pkgdir = $(libdir)/etk/engines
+
+if BUILD_ENGINE_EE_S_X11
+
+pkg_LTLIBRARIES = ecore_evas_software_x11_16.la
+
+ecore_evas_software_x11_16_la_SOURCES = \
+ ecore_evas_software_x11_16.c
+
+ecore_evas_software_x11_16_la_LIBADD = $(top_builddir)/src/lib/libetk.la
+ecore_evas_software_x11_16_la_LDFLAGS = -module -avoid-version \
+ -L$(top_builddir)/src/lib \
+ -L$(top_builddir)/src/lib/.libs
+ecore_evas_software_x11_16_la_DEPENDENCIES =
+
+endif
diff --exclude='*~' --exclude='*.lo' --exclude=Makefile.in --exclude=Makefile
--exclude='*.so' --exclude=.libs --exclude='*.Plo' --exclude='*.la'
--exclude='*.a' --exclude='*.o' --exclude=CVS -Naur
etk.orig/src/engines/ecore_evas_software_x11_16/ecore_evas_software_x11_16.c
etk.new/src/engines/ecore_evas_software_x11_16/ecore_evas_software_x11_16.c
---
etk.orig/src/engines/ecore_evas_software_x11_16/ecore_evas_software_x11_16.c
1969-12-31 21:00:00.000000000 -0300
+++ etk.new/src/engines/ecore_evas_software_x11_16/ecore_evas_software_x11_16.c
2007-06-22 19:03:44.000000000 -0300
@@ -0,0 +1,126 @@
+#include <string.h>
+#include <stdlib.h>
+#include <Ecore_Evas.h>
+#include <Etk.h>
+#include "Etk_Engine_Ecore_Evas.h"
+#include "Etk_Engine_Ecore_Evas_X11.h"
+
+typedef Etk_Engine_Ecore_Evas_X11_Window_Data Etk_Engine_Window_Data;
+
+/* General engine functions */
+Etk_Engine *engine_open();
+void engine_close();
+
+/* Etk_Window functions */
+static void _window_constructor(Etk_Window *window);
+
+static Etk_Engine engine_info = {
+
+ NULL, /* engine specific data */
+ NULL, /* engine name */
+ NULL, /* super (parent) engine */
+ NULL, /* DL handle */
+
+ NULL, /* engine_init */
+ NULL, /* engine_shutdown */
+
+ _window_constructor,
+ NULL, /* window_destructor */
+ NULL, /* window_show */
+ NULL, /* window_hide */
+ NULL, /* window_evas_get */
+ NULL, /* window_title_set */
+ NULL, /* window_title_get */
+ NULL, /* window_wmclass_set */
+ NULL, /* window_move */
+ NULL, /* window_resize */
+ NULL, /* window_size_min_get */
+ NULL, /* window_evas_position_get */
+ NULL, /* window_screen_position_get */
+ NULL, /* window_size_get */
+ NULL, /* window_screen_geometry_get */
+ NULL, /* window_modal_for_window */
+ NULL, /* window_iconified_set */
+ NULL, /* window_iconified_get */
+ NULL, /* window_maximized_set */
+ NULL, /* window_maximized_get */
+ NULL, /* window_fullscreen_set */
+ NULL, /* window_fullscreen_get */
+ NULL, /* window_raise */
+ NULL, /* window_lower */
+ NULL, /* window_stacking_set */
+ NULL, /* window_stacking_get */
+ NULL, /* window_sticky_set */
+ NULL, /* window_sticky_get */
+ NULL, /* window_focused_set */
+ NULL, /* window_focused_get */
+ NULL, /* window_decorated_set */
+ NULL, /* window_decorated_get */
+ NULL, /* window_shaped_set */
+ NULL, /* window_shaped_get */
+ NULL, /* window_has_alpha_set */
+ NULL, /* window_has_alpha_get */
+ NULL, /* window_skip_taskbar_hint_set */
+ NULL, /* window_skip_taskbar_hint_ge */
+ NULL, /* window_skip_pager_hint_set */
+ NULL, /* window_skip_pager_hint_get */
+ NULL, /* window_pointer_set */
+
+ NULL, /* popup_window_constructor */
+ NULL, /* popup_window_popup */
+ NULL, /* popup_window_popdown */
+
+ NULL, /* event_callback_set */
+ NULL, /* event_timestamp_get */
+
+ NULL, /* mouse_position_get */
+ NULL, /* mouse_screen_geometry_get */
+
+ NULL, /* selection_text_set */
+ NULL, /* selection_text_request */
+ NULL, /* selection_clear */
+
+ NULL, /* drag_constructor */
+ NULL, /* drag_begin */
+};
+
+/**************************
+ *
+ * Engine general functions
+ *
+ **************************/
+
+/* Called when the engine is loaded */
+Etk_Engine *engine_open()
+{
+ engine_info.engine_data = NULL;
+ engine_info.engine_name = strdup("ecore_evas_software_x11_16");
+ etk_engine_inherit_from(&engine_info, "ecore_evas_software_x11");
+ return &engine_info;
+}
+
+/* Called when the engine is unloaded */
+void engine_close()
+{
+ free(engine_info.engine_name);
+}
+
+/**************************
+ *
+ * Etk_Window's functions
+ *
+ **************************/
+
+/* Initializes the created window */
+static void _window_constructor(Etk_Window *window)
+{
+ /* We _MUST_ initialize and create the ecore_evas and the x_window
+ * variables in the engine_data since they are used by the "ecore_evas_x11"
engine */
+ Etk_Engine_Window_Data *engine_data;
+
+ engine_data = malloc(sizeof(Etk_Engine_Window_Data));
+ window->engine_data = engine_data;
+ ETK_ENGINE_ECORE_EVAS_WINDOW_DATA(engine_data)->ecore_evas =
ecore_evas_software_x11_16_new(NULL, 0, 0, 0, 0, 0);
+ engine_data->x_window =
ecore_evas_software_x11_16_window_get(ETK_ENGINE_ECORE_EVAS_WINDOW_DATA(engine_data)->ecore_evas);
+ engine_info.super->window_constructor(window);
+}
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel