2007-10-15 Matthew Allum <mallum@openedhand.com>

* clutter/clutter-actor.c:
        More events documentation.

        * clutter/clutter-event.c:
        * clutter/clutter-event.h:
        Add synthetic flag and make put_event use it
        (via modded patch from pippin)

        * clutter/clutter-main.c: (clutter_do_event):
        dont use put event anymore when pushing enter/leave events.
This commit is contained in:
Matthew Allum
2007-10-15 16:50:59 +00:00
parent 2a891520fa
commit dd99f024bf
5 changed files with 37 additions and 10 deletions

View File

@ -1310,7 +1310,8 @@ clutter_do_event (ClutterEvent *event)
/* unref in free */
cev.crossing.related = g_object_ref (actor);
clutter_event_put (&cev); /* copys */
g_queue_push_head (context->events_queue,
clutter_event_copy (&cev));
cev.crossing.type = CLUTTER_ENTER;
cev.crossing.time = event->any.time;
@ -1320,7 +1321,8 @@ clutter_do_event (ClutterEvent *event)
cev.crossing.source = actor;
cev.crossing.related = g_object_ref (motion_last_actor);
clutter_event_put (&cev);
g_queue_push_head (context->events_queue,
clutter_event_copy (&cev));
}
}
motion_last_actor = actor;