Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/test
Modified Files:
ewl_test.c
Log Message:
Preliminary support for the GL engine, though I do need to ifdef the various
engines still. Also added support for launching specific tests as arguments to
ewl_test, ie. "ewl_test Tree" for the tree test.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_test.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -3 -r1.51 -r1.52
--- ewl_test.c 20 Oct 2003 05:05:48 -0000 1.51
+++ ewl_test.c 25 Oct 2003 05:55:47 -0000 1.52
@@ -58,6 +58,7 @@
i = 0;
while (tests[i].func) {
+ int j;
/*
* Create the widget and it's test start from the array
@@ -76,6 +77,12 @@
ewl_object_set_alignment(EWL_OBJECT(button[i]),
EWL_FLAG_ALIGN_CENTER);
ewl_widget_show(button[i]);
+
+ for (j = 1; j < argc; j++) {
+ if (!strcmp(argv[j], tests[i].name))
+ tests[i].func(button[i], NULL, NULL);
+ }
+
i++;
}
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs