* Fix a bug with double-click

SVN revision: 26381
This commit is contained in:
moom 2006-10-06 19:13:33 +00:00 committed by moom
parent 801bdf34d8
commit 424b6c5ffb
1 changed files with 11 additions and 12 deletions

View File

@ -212,25 +212,24 @@ 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 (type == EVAS_CALLBACK_MOUSE_DOWN)
{
Evas_Event_Mouse_Down *ev = event_info;
ev->flags = flags;
}
else if (type == EVAS_CALLBACK_MOUSE_UP)
{
Evas_Event_Mouse_Up *ev = event_info;
ev->flags = flags;
}
}
if ((obj->no_propagate) && (l_mod) && (*l_mod)) return;
if ((obj->smart.parent) &&
(type != EVAS_CALLBACK_FREE) &&
(type <= EVAS_CALLBACK_KEY_UP))
{
if (type == EVAS_CALLBACK_MOUSE_DOWN)
{
Evas_Event_Mouse_Down *ev = event_info;
ev->flags = flags;
}
else if (type == EVAS_CALLBACK_MOUSE_UP)
{
Evas_Event_Mouse_Up *ev = event_info;
ev->flags = flags;
}
evas_object_event_callback_call(obj->smart.parent, type, event_info);
}
}
/**