propagate events from child objects to msart object parents

SVN revision: 8093
This commit is contained in:
Carsten Haitzler 2003-12-11 11:20:40 +00:00
parent 2cdf81f2b7
commit 155b09b092
1 changed files with 8 additions and 1 deletions

View File

@ -112,7 +112,12 @@ evas_object_event_callback_call(Evas_Object *obj, Evas_Callback_Type type, void
/* 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 @@ evas_object_event_callback_call(Evas_Object *obj, Evas_Callback_Type type, void
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);
}
/**