docs: Add details for gsk_renderer_new_for_surface

Mention the GSK_RENDERER variable here.
This commit is contained in:
Matthias Clasen 2020-10-29 14:58:12 -04:00
parent 38c39e2aa1
commit 03fec389f4

View File

@ -606,7 +606,11 @@ static struct {
*
* Creates an appropriate #GskRenderer instance for the given @surface.
*
* The renderer will be realized when it is returned.
* If the `GSK_RENDERER` environment variable is set, GSK will
* try that renderer first, before trying the backend-specific
* default. The ultimate fallback is the cairo renderer.
*
* The renderer will be realized before it is returned.
*
* Returns: (transfer full) (nullable): a #GskRenderer
*/