gdk: annotate X11 display return values

This commit is contained in:
Daemonratte 2026-05-08 10:46:29 +02:00
commit 21de53f40c

View file

@ -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.
*