osx: Use _clutter_event_push()
authorEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 2 Feb 2011 14:43:38 +0000 (14:43 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 2 Feb 2011 14:44:35 +0000 (14:44 +0000)
Do not operate directly on the event queue, but use the wrapper call
that all backends share.

clutter/osx/clutter-event-osx.c

index 10630a6..67c24c7 100644 (file)
 static void
 take_and_queue_event (ClutterEvent *event)
 {
-  ClutterMainContext *clutter_context;
-
-  clutter_context = _clutter_context_get_default ();
-
-  /* The event is added directly to the queue instead of using
-     clutter_event_put so that it can avoid a copy. This takes
-     ownership of the event */
-  g_queue_push_head (clutter_context->events_queue, event);
+  _clutter_event_push (event, FALSE);
 }
 
 static void