diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2019-09-13 06:00:35 +0200 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2019-09-20 15:03:52 +0000 |
commit | 82901f89d525db86c13821f9f9424f87b5f668b9 (patch) | |
tree | f88873cd99a882e56b0a059f5537982cbe5e4c7a /src/compositor/meta-shaped-texture.c | |
parent | c9c53cb55fd6e782c50f36da1e2adbf28111a660 (diff) | |
download | mutter-82901f89d525db86c13821f9f9424f87b5f668b9.tar.gz |
shaped-texture: Mark set the clip and return value nullable
As per the code definition the clip can be a null rectangle, and we can also
return a null surface, so mark them as nullable in the introspection.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/796
Diffstat (limited to 'src/compositor/meta-shaped-texture.c')
-rw-r--r-- | src/compositor/meta-shaped-texture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c index f85b55e23..972c33606 100644 --- a/src/compositor/meta-shaped-texture.c +++ b/src/compositor/meta-shaped-texture.c @@ -1204,7 +1204,7 @@ get_image_via_offscreen (MetaShapedTexture *stex, /** * meta_shaped_texture_get_image: * @stex: A #MetaShapedTexture - * @clip: A clipping rectangle, to help prevent extra processing. + * @clip: (nullable): A clipping rectangle, to help prevent extra processing. * In the case that the clipping rectangle is partially or fully * outside the bounds of the texture, the rectangle will be clipped. * @@ -1212,7 +1212,7 @@ get_image_via_offscreen (MetaShapedTexture *stex, * image by alpha blending the two images, and returns the flattened * image. * - * Returns: (transfer full): a new cairo surface to be freed with + * Returns: (nullable) (transfer full): a new cairo surface to be freed with * cairo_surface_destroy(). */ cairo_surface_t * |