Docs: Tweaks

Remove some more redundant "or NULL" blurbs.
This commit is contained in:
Matthias Clasen 2021-06-05 17:36:02 -04:00
parent 0ec017fcc0
commit effc7a619d
5 changed files with 12 additions and 12 deletions

View File

@ -330,14 +330,13 @@ gdk_display_open_default (void)
} }
/*< private > /*< private >
* * gdk_get_startup_notification_id:
* gdk_get_startup_notification_id
* *
* Returns the original value of the DESKTOP_STARTUP_ID environment * Returns the original value of the DESKTOP_STARTUP_ID environment
* variable if it was defined and valid, or %NULL otherwise. * variable if it was defined and valid, or %NULL otherwise.
* *
* Returns: (nullable) (transfer none): the original value of the * Returns: (nullable) (transfer none): the original value of the
* DESKTOP_STARTUP_ID environment variable, or %NULL. * DESKTOP_STARTUP_ID environment variable
*/ */
const char * const char *
gdk_get_startup_notification_id (void) gdk_get_startup_notification_id (void)

View File

@ -340,7 +340,7 @@ gdk_cursor_new_from_name (const char *name,
* @texture: the texture providing the pixel data * @texture: the texture providing the pixel data
* @hotspot_x: the horizontal offset of the hotspot of the cursor * @hotspot_x: the horizontal offset of the hotspot of the cursor
* @hotspot_y: the vertical offset of the hotspot of the cursor * @hotspot_y: the vertical offset of the hotspot of the cursor
* @fallback: (nullable): %NULL or the `GdkCursor` to fall back to when * @fallback: (nullable): the `GdkCursor` to fall back to when
* this one cannot be supported * this one cannot be supported
* *
* Creates a new cursor from a `GdkTexture`. * Creates a new cursor from a `GdkTexture`.

View File

@ -384,11 +384,11 @@ gdk_display_is_closed (GdkDisplay *display)
* gdk_display_get_event: * gdk_display_get_event:
* @display: a `GdkDisplay` * @display: a `GdkDisplay`
* *
* Gets the next `GdkEvent` to be processed for @display, fetching events from the * Gets the next `GdkEvent` to be processed for @display,
* windowing system if necessary. * fetching events from the windowing system if necessary.
* *
* Returns: (nullable) (transfer full): the next `GdkEvent` to be processed, * Returns: (nullable) (transfer full): the next `GdkEvent`
* or %NULL if no events are pending * to be processed
*/ */
GdkEvent * GdkEvent *
gdk_display_get_event (GdkDisplay *display) gdk_display_get_event (GdkDisplay *display)

View File

@ -323,7 +323,8 @@ gdk_display_manager_get_default_display (GdkDisplayManager *manager)
* Gets the default `GdkDisplay`. * Gets the default `GdkDisplay`.
* *
* This is a convenience function for: * This is a convenience function for:
* `gdk_display_manager_get_default_display (gdk_display_manager_get ())`. *
* gdk_display_manager_get_default_display (gdk_display_manager_get ())
* *
* Returns: (nullable) (transfer none): a `GdkDisplay`, or %NULL if * Returns: (nullable) (transfer none): a `GdkDisplay`, or %NULL if
* there is no default display * there is no default display

View File

@ -481,11 +481,11 @@ _gdk_frame_clock_begin_frame (GdkFrameClock *frame_clock)
* for the current frame or a recent frame. * for the current frame or a recent frame.
* *
* The `GdkFrameTimings` object may not yet be complete: see * The `GdkFrameTimings` object may not yet be complete: see
* [method@Gdk.FrameTimings.get_complete]. * [method@Gdk.FrameTimings.get_complete] and
* [method@Gdk.FrameClock.get_history_start].
* *
* Returns: (nullable) (transfer none): the `GdkFrameTimings` object * Returns: (nullable) (transfer none): the `GdkFrameTimings` object
* for the specified frame, or %NULL if it is not available. See * for the specified frame, or %NULL if it is not available
* [method@Gdk.FrameClock.get_history_start].
*/ */
GdkFrameTimings * GdkFrameTimings *
gdk_frame_clock_get_timings (GdkFrameClock *frame_clock, gdk_frame_clock_get_timings (GdkFrameClock *frame_clock,