[gtksourceview/wip/search] search: add GObject introspection annotations



commit b97667120941bbe716f83cf874ab117aebcb4837
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Jul 8 14:06:57 2013 +0200

    search: add GObject introspection annotations

 gtksourceview/gtksourcebuffer.c |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/gtksourceview/gtksourcebuffer.c b/gtksourceview/gtksourcebuffer.c
index bea13a1..03d70ed 100644
--- a/gtksourceview/gtksourcebuffer.c
+++ b/gtksourceview/gtksourcebuffer.c
@@ -2658,7 +2658,7 @@ gtk_source_buffer_get_undo_manager (GtkSourceBuffer *buffer)
 /**
  * gtk_source_buffer_set_search_text:
  * @buffer: a #GtkSourceBuffer.
- * @text: the nul-terminated text to search, or %NULL to disable the search.
+ * @text: (allow-none): the nul-terminated text to search, or %NULL to disable the search.
  *
  * Sets the text to search. If @text is %NULL or is empty, the search will be
  * disabled. A copy of @text will be made, so you can safely free @text after
@@ -2903,8 +2903,8 @@ gtk_source_buffer_get_search_occurrence_position (GtkSourceBuffer   *buffer,
  * gtk_source_buffer_forward_search:
  * @buffer: a #GtkSourceBuffer.
  * @iter: start of search.
- * @match_start: return location for start of match, or %NULL.
- * @match_end: return location for end of match, or %NULL.
+ * @match_start: (out) (allow-none): return location for start of match, or %NULL.
+ * @match_end: (out) (allow-none): return location for end of match, or %NULL.
  *
  * Synchronous forward search.
  *
@@ -2930,7 +2930,7 @@ gtk_source_buffer_forward_search (GtkSourceBuffer   *buffer,
  * gtk_source_buffer_forward_search_async:
  * @buffer: a #GtkSourceBuffer.
  * @iter: start of search.
- * @cancellable: a #GCancellable, or %NULL.
+ * @cancellable: (allow-none): a #GCancellable, or %NULL.
  * @callback: a #GAsyncReadyCallback to call when the operation is finished.
  * @user_data: the data to pass to the @callback function.
  *
@@ -2964,8 +2964,8 @@ gtk_source_buffer_forward_search_async (GtkSourceBuffer     *buffer,
  * gtk_source_buffer_forward_search_finish:
  * @buffer: a #GtkSourceBuffer.
  * @result: a #GAsyncResult.
- * @match_start: return location for start of match, or %NULL.
- * @match_end: return location for end of match, or %NULL.
+ * @match_start: (out) (allow-none): return location for start of match, or %NULL.
+ * @match_end: (out) (allow-none): return location for end of match, or %NULL.
  * @error: a #GError, or %NULL.
  *
  * Finishes a forward search started with
@@ -2994,8 +2994,8 @@ gtk_source_buffer_forward_search_finish (GtkSourceBuffer  *buffer,
  * gtk_source_buffer_backward_search:
  * @buffer: a #GtkSourceBuffer.
  * @iter: start of search.
- * @match_start: return location for start of match, or %NULL.
- * @match_end: return location for end of match, or %NULL.
+ * @match_start: (out) (allow-none): return location for start of match, or %NULL.
+ * @match_end: (out) (allow-none): return location for end of match, or %NULL.
  *
  * Synchronous backward search.
  *
@@ -3021,7 +3021,7 @@ gtk_source_buffer_backward_search (GtkSourceBuffer   *buffer,
  * gtk_source_buffer_backward_search_async:
  * @buffer: a #GtkSourceBuffer.
  * @iter: start of search.
- * @cancellable: a #GCancellable, or %NULL.
+ * @cancellable: (allow-none): a #GCancellable, or %NULL.
  * @callback: a #GAsyncReadyCallback to call when the operation is finished.
  * @user_data: the data to pass to the @callback function.
  *
@@ -3055,8 +3055,8 @@ gtk_source_buffer_backward_search_async (GtkSourceBuffer     *buffer,
  * gtk_source_buffer_backward_search_finish:
  * @buffer: a #GtkSourceBuffer.
  * @result: a #GAsyncResult.
- * @match_start: return location for start of match, or %NULL.
- * @match_end: return location for end of match, or %NULL.
+ * @match_start: (out) (allow-none): return location for start of match, or %NULL.
+ * @match_end: (out) (allow-none): return location for end of match, or %NULL.
  * @error: a #GError, or %NULL.
  *
  * Finishes a backward search started with


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