Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/edje

Dir     : e17/libs/edje/src/lib


Modified Files:
        Edje.h edje_message_queue.c 


Log Message:


example of message handler in test.edc... a start.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/Edje.h,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- Edje.h      1 Jul 2004 03:46:05 -0000       1.30
+++ Edje.h      1 Jul 2004 06:38:36 -0000       1.31
@@ -13,23 +13,23 @@
 
 typedef enum _Edje_Message_Type
 {
-   EDJE_MESSAGE_NONE,
+   EDJE_MESSAGE_NONE = 0,
      
-     EDJE_MESSAGE_SIGNAL,
+     EDJE_MESSAGE_SIGNAL = 1,
      
-     EDJE_MESSAGE_STRING,
-     EDJE_MESSAGE_INT,
-     EDJE_MESSAGE_FLOAT,
+     EDJE_MESSAGE_STRING = 2,
+     EDJE_MESSAGE_INT = 3,
+     EDJE_MESSAGE_FLOAT = 4,
      
-     EDJE_MESSAGE_STRING_SET,
-     EDJE_MESSAGE_INT_SET,
-     EDJE_MESSAGE_FLOAT_SET,
+     EDJE_MESSAGE_STRING_SET = 5,
+     EDJE_MESSAGE_INT_SET = 6,
+     EDJE_MESSAGE_FLOAT_SET = 7,
      
-     EDJE_MESSAGE_STRING_INT,
-     EDJE_MESSAGE_STRING_FLOAT,
+     EDJE_MESSAGE_STRING_INT = 8,
+     EDJE_MESSAGE_STRING_FLOAT = 9,
      
-     EDJE_MESSAGE_STRING_INT_SET,
-     EDJE_MESSAGE_STRING_FLOAT_SET
+     EDJE_MESSAGE_STRING_INT_SET = 10,
+     EDJE_MESSAGE_STRING_FLOAT_SET = 11
 } Edje_Message_Type;
 
 #define EDJE_DRAG_DIR_NONE 0
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_message_queue.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- edje_message_queue.c        1 Jul 2004 03:46:05 -0000       1.2
+++ edje_message_queue.c        1 Jul 2004 06:38:36 -0000       1.3
@@ -255,13 +255,16 @@
                  Embryo_Function fn;
                  
                  _edje_embryo_script_reset(em->edje);
-                 fn = embryo_program_function_find(em->edje->collection->script, 
"_msg");
+                 fn = embryo_program_function_find(em->edje->collection->script, 
"message");
                  if (fn != EMBRYO_FUNCTION_NONE)
                    {
                       void *pdata;
                       Embryo_Cell cell;
                       
 //                    embryo_parameter_string_push(em->edje->collection->script, sig);
+                      /* first param is the message type - always */
+                      cell = em->type;
+                      embryo_parameter_cell_push(em->edje->collection->script, cell);
                       /* first param is the integer of the event id - always there */
                       cell = em->id;
                       embryo_parameter_cell_push(em->edje->collection->script, cell);




-------------------------------------------------------
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

Reply via email to