Merge branch 'bilelmoussaoui/expressions-annotations' into 'master'

Add missing nullable annotations to BoolFilter/StringFilter

See merge request GNOME/gtk!3334
This commit is contained in:
Matthias Clasen 2021-03-23 00:49:54 +00:00
commit 4e06787a1b
2 changed files with 4 additions and 4 deletions

View File

@ -214,7 +214,7 @@ gtk_bool_filter_new (GtkExpression *expression)
* Gets the expression that the filter uses to evaluate if
* an item should be filtered.
*
* Returns: (transfer none): a `GtkExpression`
* Returns: (transfer none) (nullable): a `GtkExpression`
*/
GtkExpression *
gtk_bool_filter_get_expression (GtkBoolFilter *self)
@ -227,7 +227,7 @@ gtk_bool_filter_get_expression (GtkBoolFilter *self)
/**
* gtk_bool_filter_set_expression: (attributes org.gtk.Method.set_property=expression)
* @self: a `GtkBoolFilter`
* @expression: a `GtkExpression`
* @expression: (nullable): a `GtkExpression`
*
* Sets the expression that the filter uses to check if items
* should be filtered.

View File

@ -396,7 +396,7 @@ gtk_string_filter_set_search (GtkStringFilter *self,
* Gets the expression that the string filter uses to
* obtain strings from items.
*
* Returns: (transfer none): a `GtkExpression`
* Returns: (transfer none) (nullable): a `GtkExpression`
*/
GtkExpression *
gtk_string_filter_get_expression (GtkStringFilter *self)
@ -409,7 +409,7 @@ gtk_string_filter_get_expression (GtkStringFilter *self)
/**
* gtk_string_filter_set_expression: (attributes org.gtk.Method.set_property=expression)
* @self: a `GtkStringFilter`
* @expression: a `GtkExpression`
* @expression: (nullable): a `GtkExpression`
*
* Sets the expression that the string filter uses to
* obtain strings from items.