[vte] gir: Fix introspection annotations



commit d1e4d6322591421ba9d67b829119809cf94982c0
Author: Christian Persch <chpe src gnome org>
Date:   Mon Apr 15 18:44:28 2019 +0200

    gir: Fix introspection annotations

 src/pty.cc    | 7 ++++---
 src/vtegtk.cc | 4 ++--
 2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/pty.cc b/src/pty.cc
index 50a8818a..34660ac5 100644
--- a/src/pty.cc
+++ b/src/pty.cc
@@ -988,7 +988,7 @@ vte_pty_new_sync (VtePtyFlags flags,
 
 /**
  * vte_pty_new_foreign_sync: (constructor)
- * @fd: (transfer full): a file descriptor to the PTY
+ * @fd: a file descriptor to the PTY
  * @cancellable: (allow-none): a #GCancellable, or %NULL
  * @error: (allow-none): return location for a #GError, or %NULL
  *
@@ -1019,8 +1019,9 @@ vte_pty_new_foreign_sync (int fd,
  * vte_pty_get_fd:
  * @pty: a #VtePty
  *
- * Returns: (transfer none): the file descriptor of the PTY master in @pty. The
- *   file descriptor belongs to @pty and must not be closed
+ * Returns: the file descriptor of the PTY master in @pty. The
+ *   file descriptor belongs to @pty and must not be closed of have
+ *   its flags changed
  */
 int
 vte_pty_get_fd (VtePty *pty)
diff --git a/src/vtegtk.cc b/src/vtegtk.cc
index 998456aa..c47a5c4a 100644
--- a/src/vtegtk.cc
+++ b/src/vtegtk.cc
@@ -2657,8 +2657,8 @@ spawn_async_cb (GObject *source,
  * @child_setup_data_destroy: (destroy child_setup_data): a #GDestroyNotify for @child_setup_data, or %NULL
  * @timeout: a timeout value in ms, or -1 to wait indefinitely
  * @cancellable: (allow-none): a #GCancellable, or %NULL
- * @callback: a #VteTerminalSpawnAsyncCallback, or %NULL
- * @user_data: user data for @callback, or %NULL
+ * @callback: (scope async): a #VteTerminalSpawnAsyncCallback, or %NULL
+ * @user_data: (closure callback): user data for @callback, or %NULL
  *
  * A convenience function that wraps creating the #VtePty and spawning
  * the child process on it. See vte_pty_new_sync(), vte_pty_spawn_async(),


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