[vte/vte-0-62] lib: Add missing nullable annotation to spawn child setup functions



commit 2c63fccb983a45720ee1fcee55c15b6a9b1b4b28
Author: Hugo Parente Lima <hugo pl gmail com>
Date:   Wed Oct 21 11:40:32 2020 +0200

    lib: Add missing nullable annotation to spawn child setup functions
    
    Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/293
    (cherry picked from commit 6557b6eec39cafdb334aa59f59984d99abb946c1)

 src/vtegtk.cc | 8 ++++----
 src/vtepty.cc | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/vtegtk.cc b/src/vtegtk.cc
index f7a65f72..c5b0082c 100644
--- a/src/vtegtk.cc
+++ b/src/vtegtk.cc
@@ -3364,8 +3364,8 @@ spawn_async_cb(GObject *source,
  * @n_map_fds: the number of elements in @map_fds, or 0 if @map_fds is %NULL
  * @spawn_flags: flags from #GSpawnFlags
  * @child_setup: (allow-none) (scope async): an extra child setup function to run in the child just before 
exec(), or %NULL
- * @child_setup_data: (closure child_setup): user data for @child_setup, or %NULL
- * @child_setup_data_destroy: (destroy child_setup_data): a #GDestroyNotify for @child_setup_data, or %NULL
+ * @child_setup_data: (nullable) (closure child_setup): user data for @child_setup, or %NULL
+ * @child_setup_data_destroy: (nullable) (destroy child_setup_data): a #GDestroyNotify for 
@child_setup_data, or %NULL
  * @timeout: a timeout value in ms, -1 for the default timeout, or G_MAXINT to wait indefinitely
  * @cancellable: (allow-none): a #GCancellable, or %NULL
  * @callback: (nullable) (scope async): a #VteTerminalSpawnAsyncCallback, or %NULL
@@ -3479,8 +3479,8 @@ catch (...)
  *   variables to be added to the environment before starting the process, or %NULL
  * @spawn_flags: flags from #GSpawnFlags
  * @child_setup: (allow-none) (scope async): an extra child setup function to run in the child just before 
exec(), or %NULL
- * @child_setup_data: (closure child_setup): user data for @child_setup, or %NULL
- * @child_setup_data_destroy: (destroy child_setup_data): a #GDestroyNotify for @child_setup_data, or %NULL
+ * @child_setup_data: (nullable) (closure child_setup): user data for @child_setup, or %NULL
+ * @child_setup_data_destroy: (nullable) (destroy child_setup_data): a #GDestroyNotify for 
@child_setup_data, or %NULL
  * @timeout: a timeout value in ms, -1 for the default timeout, or G_MAXINT to wait indefinitely
  * @cancellable: (allow-none): a #GCancellable, or %NULL
  * @callback: (nullable) (scope async): a #VteTerminalSpawnAsyncCallback, or %NULL
diff --git a/src/vtepty.cc b/src/vtepty.cc
index 128c0215..7d5f2498 100644
--- a/src/vtepty.cc
+++ b/src/vtepty.cc
@@ -731,8 +731,8 @@ _vte_pty_check_envv(char const* const* strv) noexcept
  * @n_map_fds: the number of elements in @map_fds, or 0 if @map_fds is %NULL
  * @spawn_flags: flags from #GSpawnFlags
  * @child_setup: (allow-none) (scope async): an extra child setup function to run in the child just before 
exec(), or %NULL
- * @child_setup_data: (closure child_setup): user data for @child_setup, or %NULL
- * @child_setup_data_destroy: (destroy child_setup_data): a #GDestroyNotify for @child_setup_data, or %NULL
+ * @child_setup_data: (nullable) (closure child_setup): user data for @child_setup, or %NULL
+ * @child_setup_data_destroy: (nullable) (destroy child_setup_data): a #GDestroyNotify for 
@child_setup_data, or %NULL
  * @timeout: a timeout value in ms, -1 for the default timeout, or G_MAXINT to wait indefinitely
  * @cancellable: (allow-none): a #GCancellable, or %NULL
  * @callback: (nullable) (scope async): a #GAsyncReadyCallback, or %NULL
@@ -850,8 +850,8 @@ catch (...)
  *   variables to be added to the environment before starting the process, or %NULL
  * @spawn_flags: flags from #GSpawnFlags
  * @child_setup: (allow-none) (scope async): an extra child setup function to run in the child just before 
exec(), or %NULL
- * @child_setup_data: (closure child_setup): user data for @child_setup, or %NULL
- * @child_setup_data_destroy: (destroy child_setup_data): a #GDestroyNotify for @child_setup_data, or %NULL
+ * @child_setup_data: (nullable) (closure child_setup): user data for @child_setup, or %NULL
+ * @child_setup_data_destroy: (nullable) (destroy child_setup_data): a #GDestroyNotify for 
@child_setup_data, or %NULL
  * @timeout: a timeout value in ms, -1 for the default timeout, or G_MAXINT to wait indefinitely
  * @cancellable: (allow-none): a #GCancellable, or %NULL
  * @callback: (nullable) (scope async): a #GAsyncReadyCallback, or %NULL


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]