summaryrefslogtreecommitdiff
path: root/gtk/css
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-05-20 20:45:06 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-05-20 20:45:06 -0400
commit4a0d3d7acc35ce7c1f2fcb29facf58b9720eb6a5 (patch)
treee4157e70d282f7e8edac07406c67bb051334d7c7 /gtk/css
parent7fe0610b681c96823c45b88ca2c9657f1320bef8 (diff)
downloadgtk+-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/css')
-rw-r--r--gtk/css/gtkcssdataurl.c4
-rw-r--r--gtk/css/gtkcssparser.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/gtk/css/gtkcssdataurl.c b/gtk/css/gtkcssdataurl.c
index 7bc9224dbd..77ab75687e 100644
--- a/gtk/css/gtkcssdataurl.c
+++ b/gtk/css/gtkcssdataurl.c
@@ -38,11 +38,11 @@
* @url: the URL to parse
* @out_mimetype: (out nullable optional): Return location to set the contained
* mime type to. If no mime type was specified, this value is set to %NULL.
- * @error: error location or %NULL for none
+ * @error: error location
*
* Decodes a data URL according to RFC2397 and returns the decoded data.
*
- * Returns: a new #GBytes with the decoded data or %NULL on error
+ * Returns: a new #GBytes with the decoded data
**/
GBytes *
gtk_css_data_url_parse (const char *url,
diff --git a/gtk/css/gtkcssparser.c b/gtk/css/gtkcssparser.c
index f213900a84..f8b403c3d8 100644
--- a/gtk/css/gtkcssparser.c
+++ b/gtk/css/gtkcssparser.c
@@ -158,8 +158,7 @@ gtk_css_parser_unref (GtkCssParser *self)
* for example when raw data is parsed - %NULL is returned.
*
* Returns: (nullable) (transfer none): The file being parsed
- * or %NULL.
- **/
+ */
GFile *
gtk_css_parser_get_file (GtkCssParser *self)
{
@@ -971,7 +970,7 @@ gtk_css_parser_parse_url_arg (GtkCssParser *parser,
* consumes it, resolves the URL and returns the resulting #GFile.
* On failure, an error is emitted and %NULL is returned.
*
- * Returns: (nullable) (transfer full): the resulting URL or %NULL on error
+ * Returns: (nullable) (transfer full): the resulting URL
**/
char *
gtk_css_parser_consume_url (GtkCssParser *self)