g-i: Mark get_print_settings as nullable
authorBilal Elmoussaoui <belmouss@redhat.com>
Fri, 11 Feb 2022 11:07:54 +0000 (12:07 +0100)
committerBilal Elmoussaoui <belmouss@redhat.com>
Fri, 11 Feb 2022 11:07:54 +0000 (12:07 +0100)
Fixes https://github.com/gtk-rs/gtk4-rs/issues/880

gtk/gtkpagesetupunixdialog.c
gtk/gtkprintoperation.c

index 7bb9ed305f80d5606445b6ce93bcae476aededda..1539d25f3d30a1dc84befb088196516d3965ef16 100644 (file)
@@ -898,7 +898,7 @@ set_active_printer (GtkPageSetupUnixDialog *dialog,
 /**
  * gtk_page_setup_unix_dialog_set_print_settings:
  * @dialog: a `GtkPageSetupUnixDialog`
- * @print_settings: a `GtkPrintSettings`
+ * @print_settings: (nullable): a `GtkPrintSettings`
  *
  * Sets the `GtkPrintSettings` from which the page setup dialog
  * takes its values.
@@ -935,7 +935,7 @@ gtk_page_setup_unix_dialog_set_print_settings (GtkPageSetupUnixDialog *dialog,
  *
  * Gets the current print settings from the dialog.
  *
- * Returns: (transfer none): the current print settings
+ * Returns: (transfer none) (nullable): the current print settings
  **/
 GtkPrintSettings *
 gtk_page_setup_unix_dialog_get_print_settings (GtkPageSetupUnixDialog *dialog)
index 7957d42485636468632d497d5a344f3ea8a5638e..d3a7be011e796899b620aabbc95b906d7c4a062d 100644 (file)
@@ -1515,7 +1515,7 @@ gtk_print_operation_set_print_settings (GtkPrintOperation *op,
  * [method@Gtk.PrintOperation.set_print_settings] or
  * [method@Gtk.PrintOperation.run] have been called.
  *
- * Returns: (transfer none): the current print settings of @op.
+ * Returns: (transfer none) (nullable): the current print settings of @op.
  **/
 GtkPrintSettings *
 gtk_print_operation_get_print_settings (GtkPrintOperation *op)