diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-05-20 20:45:06 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-05-20 20:45:06 -0400 |
commit | 4a0d3d7acc35ce7c1f2fcb29facf58b9720eb6a5 (patch) | |
tree | e4157e70d282f7e8edac07406c67bb051334d7c7 /gdk/gdkevents.c | |
parent | 7fe0610b681c96823c45b88ca2c9657f1320bef8 (diff) | |
download | gtk+-4a0d3d7acc35ce7c1f2fcb29facf58b9720eb6a5.tar.gz |
docs: Reduce redundancy
Remove a boatload of "or %NULL" from nullable parameters
and return values. gi-docgen generates suitable text from
the annotation that we don't need to duplicate.
This adds a few missing nullable annotations too.
Diffstat (limited to 'gdk/gdkevents.c')
-rw-r--r-- | gdk/gdkevents.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c index 43e9c9f01a..4775c95635 100644 --- a/gdk/gdkevents.c +++ b/gdk/gdkevents.c @@ -574,9 +574,8 @@ _gdk_event_queue_remove_link (GdkDisplay *display, * Removes and returns the first event from the event * queue that is not still being filled in. * - * Returns: (nullable): the event, or %NULL. Ownership is transferred - * to the caller. - **/ + * Returns: (nullable) (transfer full): the event + */ GdkEvent* _gdk_event_unqueue (GdkDisplay *display) { @@ -1238,8 +1237,8 @@ gdk_event_get_device (GdkEvent *event) * the application lifetime, if settings must be stored * persistently across runs, see [method@Gdk.DeviceTool.get_serial]. * - * Returns: (transfer none) (nullable): The current device tool, or %NULL - **/ + * Returns: (transfer none) (nullable): The current device tool + */ GdkDeviceTool * gdk_event_get_device_tool (GdkEvent *event) { |