Add missing nullable to GtkWidgetActionActivateFunc
authorNiels De Graef <nielsdegraef@gmail.com>
Sat, 14 Jan 2023 14:30:15 +0000 (15:30 +0100)
committerNiels De Graef <nielsdegraef@gmail.com>
Sat, 14 Jan 2023 14:30:15 +0000 (15:30 +0100)
The `GVariant` that is passed on to the `GtkWidgetActionActivateFunc`
can be `NULL` in case the parameter type is also `NULL`, so mark it
nullable.

gtk/gtkwidget.h

index a7bade8db06df561630da8aed2c96ab89289239f..d02521a4f406327070ec1c5c570513027ab17bdb 100644 (file)
@@ -937,7 +937,7 @@ void                    gtk_widget_get_color            (GtkWidget   *widget,
  * GtkWidgetActionActivateFunc:
  * @widget: the widget to which the action belongs
  * @action_name: the action name
- * @parameter: parameter for activation
+ * @parameter: (nullable): parameter for activation
  *
  * The type of the callback functions used for activating
  * actions installed with gtk_widget_class_install_action().