Add (nullable) if applicable

Basically this commit makes sure that all return values that are marked
as "Returns:" also have a `(nullable)` annotation if it is mentioned on
the same line that NULL can also be returned.

This will prevent a few problems in GObject-introspection.
This commit is contained in:
Niels De Graef
2019-08-03 00:36:59 +02:00
committed by Jehan
parent 1dda60154c
commit 5f92ced1f3
23 changed files with 62 additions and 57 deletions

View File

@ -474,7 +474,8 @@ monitor_number (GdkMonitor *monitor)
*
* Since: 3.0
*
* Returns: (transfer full): the monitor's #GimpColorProfile, or %NULL.
* Returns: (nullable) (transfer full): the monitor's #GimpColorProfile,
* or %NULL.
**/
GimpColorProfile *
gimp_monitor_get_color_profile (GdkMonitor *monitor)
@ -590,7 +591,8 @@ gimp_monitor_get_color_profile (GdkMonitor *monitor)
*
* Since: 3.0
*
* Returns: (transfer full): @widget's monitor's #GimpColorProfile, or %NULL.
* Returns: (nullable) (transfer full): @widget's monitor's #GimpColorProfile,
* or %NULL.
**/
GimpColorProfile *
gimp_widget_get_color_profile (GtkWidget *widget)