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 /gtk/gtktextbuffer.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 'gtk/gtktextbuffer.c')
-rw-r--r-- | gtk/gtktextbuffer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtktextbuffer.c b/gtk/gtktextbuffer.c index d6394df923..80127c3fde 100644 --- a/gtk/gtktextbuffer.c +++ b/gtk/gtktextbuffer.c @@ -2445,7 +2445,7 @@ gtk_text_buffer_set_mark (GtkTextBuffer *buffer, /** * gtk_text_buffer_create_mark: * @buffer: a `GtkTextBuffer` - * @mark_name: (nullable): name for mark, or %NULL + * @mark_name: (nullable): name for mark * @where: location to place mark * @left_gravity: whether the mark has left gravity * @@ -2615,7 +2615,7 @@ gtk_text_buffer_delete_mark (GtkTextBuffer *buffer, * Returns the mark named @name in buffer @buffer, or %NULL if no such * mark exists in the buffer. * - * Returns: (nullable) (transfer none): a #GtkTextMark, or %NULL + * Returns: (nullable) (transfer none): a #GtkTextMark **/ GtkTextMark* gtk_text_buffer_get_mark (GtkTextBuffer *buffer, @@ -2826,8 +2826,8 @@ gtk_text_buffer_select_range (GtkTextBuffer *buffer, /** * gtk_text_buffer_create_tag: * @buffer: a `GtkTextBuffer` - * @tag_name: (nullable): name of the new tag, or %NULL - * @first_property_name: (nullable): name of first property to set, or %NULL + * @tag_name: (nullable): name of the new tag + * @first_property_name: (nullable): name of first property to set * @...: %NULL-terminated list of property names and values * * Creates a tag and adds it to the tag table for @buffer. @@ -3919,7 +3919,7 @@ remove_all_selection_clipboards (GtkTextBuffer *buffer) * gtk_text_buffer_paste_clipboard: * @buffer: a `GtkTextBuffer` * @clipboard: the `GdkClipboard` to paste from - * @override_location: (nullable): location to insert pasted text, or %NULL + * @override_location: (nullable): location to insert pasted text * @default_editable: whether the buffer is editable by default * * Pastes the contents of a clipboard. |