Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/canvas


Modified Files:
        evas_callbacks.c 


Log Message:


propagate events from child objects to msart object parents

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/canvas/evas_callbacks.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- evas_callbacks.c    18 Oct 2003 03:34:00 -0000      1.13
+++ evas_callbacks.c    11 Dec 2003 11:20:40 -0000      1.14
@@ -112,7 +112,12 @@
    /* MEM OK */
    Evas_Object_List **l_mod, *l;
    
-   if (!obj->callbacks) return;
+   if (!obj->callbacks)
+     {
+       if (obj->smart.parent)
+         evas_object_event_callback_call(obj->smart.parent, type, event_info);
+       return;
+     }
    switch (type)
      {
       case EVAS_CALLBACK_MOUSE_IN:
@@ -180,6 +185,8 @@
    obj->callbacks->walking_list--;
    if (!obj->callbacks->walking_list)
      evas_object_event_callback_clear(obj);
+   if (obj->smart.parent)
+     evas_object_event_callback_call(obj->smart.parent, type, event_info);
 }
 
 /**




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to