From 21de53f40c7e1db3e00ea3daf508afb484c75cba Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 8 May 2026 10:46:29 +0200 Subject: [PATCH] gdk: annotate X11 display return values --- gdk/x11/gdkdisplay-x11.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c index b570d9c1a..b9af8be93 100644 --- a/gdk/x11/gdkdisplay-x11.c +++ b/gdk/x11/gdkdisplay-x11.c @@ -139,7 +139,7 @@ _gdk_display_x11_init (GdkDisplayX11 *display) /** * gdk_display_open: * @display_name: the name of the display to open - * @returns: a #GdkDisplay, or %NULL if the display + * Return value: (nullable) (transfer full): a #GdkDisplay, or %NULL if the display * could not be opened. * * Opens a display. @@ -541,7 +541,7 @@ gdk_display_get_n_screens (GdkDisplay *display) * * Returns a screen object for one of the screens of the display. * - * Returns: the #GdkScreen object + * Returns: (transfer none): the #GdkScreen object * * Since: 2.2 */ @@ -561,7 +561,7 @@ gdk_display_get_screen (GdkDisplay *display, * * Get the default #GdkScreen for @display. * - * Returns: the default #GdkScreen object for @display + * Returns: (transfer none): the default #GdkScreen object for @display * * Since: 2.2 */ @@ -756,7 +756,7 @@ gdk_display_flush (GdkDisplay *display) * on @display. This window is implicitly created by GDK. * See gdk_window_set_group(). * - * Return value: The default group leader window for @display + * Return value: (transfer none): The default group leader window for @display * * Since: 2.4 **/ @@ -900,7 +900,7 @@ gdk_display_x11_finalize (GObject *object) * * Find the #GdkDisplay corresponding to @display, if any exists. * - * Return value: the #GdkDisplay, if found, otherwise %NULL. + * Return value: (nullable) (transfer none): the #GdkDisplay, if found, otherwise %NULL. * * Since: 2.2 **/ @@ -946,7 +946,7 @@ _gdk_x11_display_screen_for_xrootwin (GdkDisplay *display, } /** - * gdk_x11_display_get_xdisplay: + * gdk_x11_display_get_xdisplay: (skip) * @display: a #GdkDisplay * @returns: an X display. *