[gtksourceview] completion: migrate (allow-none) annotations
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] completion: migrate (allow-none) annotations
- Date: Mon, 13 Jun 2016 17:29:37 +0000 (UTC)
commit 1b782431b41b815414d269b687d1074e7abe21ab
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon Jun 13 10:44:04 2016 +0200
completion: migrate (allow-none) annotations
gtksourceview/gtksourcecompletion.c | 8 ++++----
gtksourceview/gtksourcecompletioncontext.c | 2 +-
gtksourceview/gtksourcecompletioninfo.c | 4 ++--
gtksourceview/gtksourcecompletionitem.c | 12 ++++++------
4 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index 64fb025..28f0d42 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -2739,7 +2739,7 @@ _gtk_source_completion_add_proposals (GtkSourceCompletion *completion,
/**
* gtk_source_completion_show:
* @completion: a #GtkSourceCompletion.
- * @providers: (element-type GtkSource.CompletionProvider) (allow-none):
+ * @providers: (element-type GtkSource.CompletionProvider) (nullable):
* a list of #GtkSourceCompletionProvider, or %NULL.
* @context: (transfer floating): The #GtkSourceCompletionContext
* with which to start the completion.
@@ -2857,7 +2857,7 @@ gtk_source_completion_new (GtkSourceView *view)
* gtk_source_completion_add_provider:
* @completion: a #GtkSourceCompletion.
* @provider: a #GtkSourceCompletionProvider.
- * @error: (allow-none): a #GError.
+ * @error: a #GError.
*
* Add a new #GtkSourceCompletionProvider to the completion object. This will
* add a reference @provider, so make sure to unref your own copy when you
@@ -2902,7 +2902,7 @@ gtk_source_completion_add_provider (GtkSourceCompletion *completion,
* gtk_source_completion_remove_provider:
* @completion: a #GtkSourceCompletion.
* @provider: a #GtkSourceCompletionProvider.
- * @error: (allow-none): a #GError.
+ * @error: a #GError.
*
* Remove @provider from the completion.
*
@@ -3004,7 +3004,7 @@ gtk_source_completion_get_view (GtkSourceCompletion *completion)
/**
* gtk_source_completion_create_context:
* @completion: a #GtkSourceCompletion.
- * @position: (allow-none): a #GtkTextIter, or %NULL.
+ * @position: (nullable): a #GtkTextIter, or %NULL.
*
* Create a new #GtkSourceCompletionContext for @completion. The position where
* the completion occurs can be specified by @position. If @position is %NULL,
diff --git a/gtksourceview/gtksourcecompletioncontext.c b/gtksourceview/gtksourcecompletioncontext.c
index da3939b..57a3e3e 100644
--- a/gtksourceview/gtksourcecompletioncontext.c
+++ b/gtksourceview/gtksourcecompletioncontext.c
@@ -289,7 +289,7 @@ gtk_source_completion_context_init (GtkSourceCompletionContext *context)
* gtk_source_completion_context_add_proposals:
* @context: a #GtkSourceCompletionContext.
* @provider: (type GtkSource.CompletionProvider): a #GtkSourceCompletionProvider.
- * @proposals: (allow-none) (element-type GtkSource.CompletionProposal): The list of proposals to add.
+ * @proposals: (nullable) (element-type GtkSource.CompletionProposal): The list of proposals to add.
* @finished: Whether the provider is finished adding proposals.
*
* Providers can use this function to add proposals to the completion. They
diff --git a/gtksourceview/gtksourcecompletioninfo.c b/gtksourceview/gtksourcecompletioninfo.c
index 3ebb435..f8130de 100644
--- a/gtksourceview/gtksourcecompletioninfo.c
+++ b/gtksourceview/gtksourcecompletioninfo.c
@@ -578,7 +578,7 @@ gtk_source_completion_info_new (void)
* gtk_source_completion_info_move_to_iter:
* @info: a #GtkSourceCompletionInfo.
* @view: a #GtkTextView on which the info window should be positioned.
- * @iter: (allow-none): a #GtkTextIter.
+ * @iter: (nullable): a #GtkTextIter.
*
* Moves the #GtkSourceCompletionInfo to @iter. If @iter is %NULL @info is
* moved to the cursor position. Moving will respect the #GdkGravity setting
@@ -606,7 +606,7 @@ gtk_source_completion_info_move_to_iter (GtkSourceCompletionInfo *info,
/**
* gtk_source_completion_info_set_widget:
* @info: a #GtkSourceCompletionInfo.
- * @widget: (allow-none): a #GtkWidget.
+ * @widget: (nullable): a #GtkWidget.
*
* Sets the content widget of the info window. See that the previous widget will
* lose a reference and it can be destroyed, so if you do not want this to
diff --git a/gtksourceview/gtksourcecompletionitem.c b/gtksourceview/gtksourcecompletionitem.c
index 453d1fe..fc0aee7 100644
--- a/gtksourceview/gtksourcecompletionitem.c
+++ b/gtksourceview/gtksourcecompletionitem.c
@@ -376,8 +376,8 @@ gtk_source_completion_item_init (GtkSourceCompletionItem *self)
* gtk_source_completion_item_new:
* @label: The item label.
* @text: The item text.
- * @icon: (allow-none): The item icon.
- * @info: (allow-none): The item extra information.
+ * @icon: (nullable): The item icon.
+ * @info: (nullable): The item extra information.
*
* Create a new #GtkSourceCompletionItem with label @label, icon @icon and
* extra information @info. Both @icon and @info can be %NULL in which case
@@ -403,8 +403,8 @@ gtk_source_completion_item_new (const gchar *label,
* gtk_source_completion_item_new_with_markup:
* @markup: The item markup label.
* @text: The item text.
- * @icon: (allow-none): The item icon.
- * @info: (allow-none): The item extra information.
+ * @icon: (nullable): The item icon.
+ * @info: (nullable): The item extra information.
*
* Create a new #GtkSourceCompletionItem with markup label @markup, icon
* @icon and extra information @info. Both @icon and @info can be %NULL in
@@ -430,10 +430,10 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
/**
* gtk_source_completion_item_new_from_stock:
- * @label: (allow-none): The item label.
+ * @label: (nullable): The item label.
* @text: The item text.
* @stock: The stock icon.
- * @info: (allow-none): The item extra information.
+ * @info: (nullable): The item extra information.
*
* Creates a new #GtkSourceCompletionItem from a stock item. If @label is %NULL,
* the stock label will be used.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]