2008-01-19 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/clutter-main.c (generate_enter_leave_events): Do not
	take the explicit reference, and let clutter_event_copy() do it
	for us. (#714, Neil Roberts)
This commit is contained in:
Emmanuele Bassi 2008-01-19 10:33:31 +00:00
parent 5b40709270
commit 92954a76a7
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2008-01-19 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-main.c (generate_enter_leave_events): Do not
take the explicit reference, and let clutter_event_copy() do it
for us. (#714, Neil Roberts)
2008-01-19 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-event.c (clutter_event_copy): Take an extra

View File

@ -1285,7 +1285,7 @@ generate_enter_leave_events (ClutterEvent *event)
cev.crossing.y = event->motion.y;
cev.crossing.source = context->motion_last_actor;
/* unref in free */
cev.crossing.related = g_object_ref (motion_current_actor);
cev.crossing.related = motion_current_actor;
g_queue_push_head (context->events_queue,
clutter_event_copy (&cev));
@ -1297,10 +1297,9 @@ generate_enter_leave_events (ClutterEvent *event)
cev.crossing.x = event->motion.x;
cev.crossing.y = event->motion.y;
cev.crossing.source = motion_current_actor;
if (context->motion_last_actor)
{
cev.crossing.related = g_object_ref (context->motion_last_actor);
}
cev.crossing.related = context->motion_last_actor;
else
{
/* the previous actor we were getting events from seems to have