diff --git a/clutter/clutter/clutter-backend.c b/clutter/clutter/clutter-backend.c index d97d9275d..c38cffc09 100644 --- a/clutter/clutter/clutter-backend.c +++ b/clutter/clutter/clutter-backend.c @@ -255,7 +255,7 @@ clutter_backend_real_create_context (ClutterBackend *backend, return FALSE; } - backend->cogl_source = cogl_glib_source_new (backend->cogl_context, G_PRIORITY_DEFAULT); + backend->cogl_source = cogl_glib_source_new (backend->cogl_renderer, G_PRIORITY_DEFAULT); g_source_attach (backend->cogl_source, NULL); return TRUE; diff --git a/cogl/cogl/cogl-glib-source.c b/cogl/cogl/cogl-glib-source.c index f526cc663..90bf6afb6 100644 --- a/cogl/cogl/cogl-glib-source.c +++ b/cogl/cogl/cogl-glib-source.c @@ -96,8 +96,8 @@ cogl_glib_source_funcs = }; GSource * -cogl_glib_renderer_source_new (CoglRenderer *renderer, - int priority) +cogl_glib_source_new (CoglRenderer *renderer, + int priority) { GSource *source; CoglGLibSource *cogl_source; @@ -114,11 +114,3 @@ cogl_glib_renderer_source_new (CoglRenderer *renderer, return source; } - -GSource * -cogl_glib_source_new (CoglContext *context, - int priority) -{ - return cogl_glib_renderer_source_new (cogl_context_get_renderer (context), - priority); -} diff --git a/cogl/cogl/cogl-glib-source.h b/cogl/cogl/cogl-glib-source.h index 27b301f53..ad3bb6704 100644 --- a/cogl/cogl/cogl-glib-source.h +++ b/cogl/cogl/cogl-glib-source.h @@ -42,40 +42,16 @@ G_BEGIN_DECLS /** * cogl_glib_source_new: - * @context: A #CoglContext + * @renderer: A #CoglRenderer * @priority: The priority of the #GSource * * Creates a #GSource which handles Cogl's internal system event * processing. * - * Applications that manually connect to a #CoglRenderer before they - * create a #CoglContext should instead use - * cogl_glib_renderer_source_new() so that events may be dispatched - * before a context has been created. In that case you don't need to - * use this api in addition later, it is simply enough to use - * cogl_glib_renderer_source_new() instead. - * - * This api is actually just a thin convenience wrapper around - * cogl_glib_renderer_source_new() - * * Return value: a new #GSource */ COGL_EXPORT GSource * -cogl_glib_source_new (CoglContext *context, - int priority); - -/** - * cogl_glib_renderer_source_new: - * @renderer: A #CoglRenderer - * @priority: The priority of the #GSource - * - * Creates a #GSource which handles Cogl's internal system event - * processing - * - * Return value: a new #GSource - */ -COGL_EXPORT GSource * -cogl_glib_renderer_source_new (CoglRenderer *renderer, - int priority); +cogl_glib_source_new (CoglRenderer *renderer, + int priority); G_END_DECLS