summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorentin Noël <corentin.noel@collabora.com>2022-11-24 15:16:13 +0100
committerCorentin Noël <corentin.noel@collabora.com>2022-11-24 15:16:13 +0100
commit66dcef7ac1f9557e0a3e7fdfd398fd6eff367e8b (patch)
treeda88eb2cc22d48b05a543f655406b8914218ec3c
parent8206208a22ca61bd22f9f7211b522f263da514e6 (diff)
downloadmutter-66dcef7ac1f9557e0a3e7fdfd398fd6eff367e8b.tar.gz
window-actor: Add several (nullable) annotations
Many getters might return a NULL value, let's reflect this in the annotations. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2715>
-rw-r--r--src/compositor/meta-window-actor.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index fcf3d2c16..43f543d00 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -512,7 +512,7 @@ meta_window_actor_get_property (GObject *object,
*
* Gets the #MetaWindow object that the the #MetaWindowActor is displaying
*
- * Return value: (transfer none): the displayed #MetaWindow
+ * Return value: (transfer none) (nullable): the displayed #MetaWindow
*/
MetaWindow *
meta_window_actor_get_meta_window (MetaWindowActor *self)
@@ -530,7 +530,7 @@ meta_window_actor_get_meta_window (MetaWindowActor *self)
* Gets the ClutterActor that is used to display the contents of the window,
* or NULL if no texture is shown yet, because the window is not mapped.
*
- * Return value: (transfer none): the #ClutterActor for the contents
+ * Return value: (transfer none) (nullable): the #ClutterActor for the contents
*/
MetaShapedTexture *
meta_window_actor_get_texture (MetaWindowActor *self)
@@ -551,7 +551,8 @@ meta_window_actor_get_texture (MetaWindowActor *self)
* Gets the MetaSurfaceActor that draws the content of this window,
* or NULL if there is no surface yet associated with this window.
*
- * Return value: (transfer none): the #MetaSurfaceActor for the contents
+ * Return value: (transfer none) (nullable): the #MetaSurfaceActor for the
+ * contents
*/
MetaSurfaceActor *
meta_window_actor_get_surface (MetaWindowActor *self)