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:
@ -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)
|
||||
|
Reference in New Issue
Block a user