Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/edje
Dir : e17/libs/edje/data/src
Modified Files:
test.edc
Log Message:
example of message handler in test.edc... a start.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/data/src/test.edc,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- test.edc 24 May 2004 07:58:36 -0000 1.17
+++ test.edc 1 Jul 2004 06:38:36 -0000 1.18
@@ -56,6 +56,40 @@
emit("SMELLY", "Fish");
}
}
+
+ tst()
+ {
+ return 0;
+ }
+
+// a special function for handling app messages - put it here if you want to
+// handle messages from apps
+ public message(Msg_Type:type, id, ...)
+ {
+ if (type == MSG_NONE)
+ {
+ }
+ else if (type == MSG_STRING)
+ {
+ new str[100];
+
+ for (new j = 0; j < (sizeof(str) - 1); j++)
+ {
+ str[j] = getarg(2, j);
+ if (str[j] == 0) break;
+ }
+ }
+ else if (type == MSG_INT_SET)
+ {
+ for (new i = 2; i < numargs(); i++)
+ {
+ new val;
+
+ val = getarg(i);
+ if (val > 9999) break;
+ }
+ }
+ }
}
parts
{
@@ -225,7 +259,7 @@
// for this group or functions exported
script
{
- var i = 5;
+ new i = 5;
while (i > 0)
{
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs