summaryrefslogtreecommitdiff
path: root/gtk/gtkpagesetup.c
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/gtkpagesetup.c
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/gtkpagesetup.c')
-rw-r--r--gtk/gtkpagesetup.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk/gtkpagesetup.c b/gtk/gtkpagesetup.c
index 18d1c4c4b3..d106edab9a 100644
--- a/gtk/gtkpagesetup.c
+++ b/gtk/gtkpagesetup.c
@@ -491,7 +491,7 @@ gtk_page_setup_get_page_height (GtkPageSetup *setup,
* gtk_page_setup_load_file:
* @setup: a `GtkPageSetup`
* @file_name: (type filename): the filename to read the page setup from
- * @error: (nullable): return location for an error, or %NULL
+ * @error: (nullable): return location for an error
*
* Reads the page setup from the file @file_name.
*
@@ -524,7 +524,7 @@ gtk_page_setup_load_file (GtkPageSetup *setup,
/**
* gtk_page_setup_new_from_file:
* @file_name: (type filename): the filename to read the page setup from
- * @error: (nullable): return location for an error, or %NULL
+ * @error: (nullable): return location for an error
*
* Reads the page setup from the file @file_name.
*
@@ -574,9 +574,9 @@ string_to_enum (GType type,
* gtk_page_setup_load_key_file:
* @setup: a `GtkPageSetup`
* @key_file: the `GKeyFile` to retrieve the page_setup from
- * @group_name: (nullable): the name of the group in the key_file to read, or %NULL
+ * @group_name: (nullable): the name of the group in the key_file to read
* to use the default name “Page Setup”
- * @error: (nullable): return location for an error, or %NULL
+ * @error: (nullable): return location for an error
*
* Reads the page setup from the group @group_name in the key file
* @key_file.
@@ -660,9 +660,9 @@ out:
/**
* gtk_page_setup_new_from_key_file:
* @key_file: the `GKeyFile` to retrieve the page_setup from
- * @group_name: (nullable): the name of the group in the key_file to read, or %NULL
+ * @group_name: (nullable): the name of the group in the key_file to read
* to use the default name “Page Setup”
- * @error: (nullable): return location for an error, or %NULL
+ * @error: (nullable): return location for an error
*
* Reads the page setup from the group @group_name in the key file
* @key_file.
@@ -692,7 +692,7 @@ gtk_page_setup_new_from_key_file (GKeyFile *key_file,
* gtk_page_setup_to_file:
* @setup: a `GtkPageSetup`
* @file_name: (type filename): the file to save to
- * @error: (nullable): return location for errors, or %NULL
+ * @error: (nullable): return location for errors
*
* This function saves the information from @setup to @file_name.
*