From 4563f9353ac1a23384db59a18c8796000c081775 Mon Sep 17 00:00:00 2001 From: Sophie Herold Date: Wed, 27 Dec 2023 13:54:01 +0100 Subject: [PATCH] gtk: Add nullables in native GdkSurface and GskRenderer are not available before realized. Therefore mark functions returning them in GtkNative as nullable. Closes #6301 --- gtk/gtknative.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtknative.c b/gtk/gtknative.c index d853f55f0f..7eab6c02cf 100644 --- a/gtk/gtknative.c +++ b/gtk/gtknative.c @@ -218,7 +218,7 @@ gtk_native_unrealize (GtkNative *self) * * Returns the surface of this `GtkNative`. * - * Returns: (transfer none): the surface of @self + * Returns: (transfer none) (nullable): the surface of @self */ GdkSurface * gtk_native_get_surface (GtkNative *self) @@ -234,7 +234,7 @@ gtk_native_get_surface (GtkNative *self) * * Returns the renderer that is used for this `GtkNative`. * - * Returns: (transfer none): the renderer for @self + * Returns: (transfer none) (nullable): the renderer for @self */ GskRenderer * gtk_native_get_renderer (GtkNative *self)