[gtk+/wip/aruiz/nullable-annotations] nullable annotations: gtk_tool_palette_get_drop_group gtk_tool_palette_get_drop_item gtk_toolb



commit 3371536a00a000adf6df07332780db9cec1e2ff9
Author: Alberto Ruiz <aruiz gnome org>
Date:   Sun Dec 13 03:46:11 2015 +0000

    nullable annotations:
      gtk_tool_palette_get_drop_group
      gtk_tool_palette_get_drop_item
      gtk_toolbar_get_nth_item

 gtk/gtktoolbar.c     |    2 +-
 gtk/gtktoolpalette.c |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c
index 4c8674f..4977e0d 100644
--- a/gtk/gtktoolbar.c
+++ b/gtk/gtktoolbar.c
@@ -2891,7 +2891,7 @@ gtk_toolbar_get_n_items (GtkToolbar *toolbar)
  * Returns the @n'th item on @toolbar, or %NULL if the
  * toolbar does not contain an @n'th item.
  *
- * Returns: (transfer none): The @n'th #GtkToolItem on @toolbar,
+ * Returns: (nullable) (transfer none): The @n'th #GtkToolItem on @toolbar,
  *     or %NULL if there isn’t an @n'th item.
  *
  * Since: 2.4
diff --git a/gtk/gtktoolpalette.c b/gtk/gtktoolpalette.c
index 70ca79f..bc9b234 100644
--- a/gtk/gtktoolpalette.c
+++ b/gtk/gtktoolpalette.c
@@ -1483,7 +1483,7 @@ gtk_tool_palette_get_expand (GtkToolPalette   *palette,
  * Gets the item at position (x, y).
  * See gtk_tool_palette_get_drop_group().
  *
- * Returns: (transfer none): the #GtkToolItem at position or %NULL if there is no such item
+ * Returns: (nullable) (transfer none): the #GtkToolItem at position or %NULL if there is no such item
  *
  * Since: 2.20
  */
@@ -1515,8 +1515,8 @@ gtk_tool_palette_get_drop_item (GtkToolPalette *palette,
  *
  * Gets the group at position (x, y).
  *
- * Returns: (transfer none): the #GtkToolItemGroup at position or %NULL
- *     if there is no such group
+ * Returns: (nullable) (transfer none): the #GtkToolItemGroup at position
+ * or %NULL if there is no such group
  *
  * Since: 2.20
  */


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