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/gdkmonitor.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/gdkmonitor.c')
-rw-r--r-- | gdk/gdkmonitor.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdk/gdkmonitor.c b/gdk/gdkmonitor.c index b1aafd5756..47ebb3c519 100644 --- a/gdk/gdkmonitor.c +++ b/gdk/gdkmonitor.c @@ -421,8 +421,7 @@ gdk_monitor_get_connector (GdkMonitor *monitor) * The PNP ID registry is located at * [https://uefi.org/pnp_id_list](https://uefi.org/pnp_id_list). * - * Returns: (transfer none) (nullable): the name of the manufacturer, - * or %NULL + * Returns: (transfer none) (nullable): the name of the manufacturer */ const char * gdk_monitor_get_manufacturer (GdkMonitor *monitor) @@ -438,7 +437,7 @@ gdk_monitor_get_manufacturer (GdkMonitor *monitor) * * Gets the string identifying the monitor model, if available. * - * Returns: (transfer none) (nullable): the monitor model, or %NULL + * Returns: (transfer none) (nullable): the monitor model */ const char * gdk_monitor_get_model (GdkMonitor *monitor) |