[gtk] Fix some g-i annotation warnings



commit ff738269b651167bf7291c722439836f5af5b358
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Fri Apr 6 16:20:48 2018 +0200

    Fix some g-i annotation warnings

 gdk/gdkpaintable.c       | 2 +-
 gtk/gtkgesturestylus.c   | 2 +-
 gtk/gtksearchbar.c       | 2 +-
 gtk/gtksearchentry.c     | 4 ++--
 gtk/gtkwidgetpaintable.c | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gdk/gdkpaintable.c b/gdk/gdkpaintable.c
index 8405d2ad06..efb4ea2ac3 100644
--- a/gdk/gdkpaintable.c
+++ b/gdk/gdkpaintable.c
@@ -625,7 +625,7 @@ gdk_empty_paintable_init (GdkEmptyPaintable *self)
  * virtual function when the paintable is in an incomplete state (like a
  * #GtkMediaStream before receiving the first frame).
  *
- * Returns: (transfer full) a #GdkPaintable
+ * Returns: (transfer full): a #GdkPaintable
  **/
 GdkPaintable *
 gdk_paintable_new_empty (int intrinsic_width,
diff --git a/gtk/gtkgesturestylus.c b/gtk/gtkgesturestylus.c
index 6ba3bf14a3..162f02d273 100644
--- a/gtk/gtkgesturestylus.c
+++ b/gtk/gtkgesturestylus.c
@@ -246,7 +246,7 @@ gtk_gesture_stylus_get_axes (GtkGestureStylus  *gesture,
 /**
  * gtk_gesture_stylus_get_backlog:
  * @gesture: a #GtkGestureStylus
- * @backlog: (out): coordinates and times for the backlog events
+ * @backlog: (out) (array length=n_elems): coordinates and times for the backlog events
  * @n_elems: (out): return location for the number of elements
  *
  * By default, GTK+ will limit rate of input events. On stylus input where
diff --git a/gtk/gtksearchbar.c b/gtk/gtksearchbar.c
index dfe6b8447c..87c105826a 100644
--- a/gtk/gtksearchbar.c
+++ b/gtk/gtksearchbar.c
@@ -755,7 +755,7 @@ gtk_search_bar_set_key_capture_widget (GtkSearchBar *bar,
  *
  * Gets the widget that @bar is capturing key events from.
  *
- * Returns: The key capture widget.
+ * Returns: (transfer none): The key capture widget.
  *
  * Since: 3.94
  **/
diff --git a/gtk/gtksearchentry.c b/gtk/gtksearchentry.c
index 7501ef78bd..cce039c644 100644
--- a/gtk/gtksearchentry.c
+++ b/gtk/gtksearchentry.c
@@ -479,7 +479,7 @@ capture_widget_key_handled (GtkEventControllerKey *controller,
 
 /**
  * gtk_search_entry_set_key_capture_widget:
- * @bar: a #GtkSearchEntry
+ * @entry: a #GtkSearchEntry
  * @widget: (nullable) (transfer none): a #GtkWidget
  *
  * Sets @widget as the widget that @entry will capture key events from.
@@ -532,7 +532,7 @@ gtk_search_entry_set_key_capture_widget (GtkSearchEntry *entry,
  *
  * Gets the widget that @entry is capturing key events from.
  *
- * Returns: The key capture widget.
+ * Returns: (transfer none): The key capture widget.
  *
  * Since: 3.94
  **/
diff --git a/gtk/gtkwidgetpaintable.c b/gtk/gtkwidgetpaintable.c
index 4ed58a0465..81512cb437 100644
--- a/gtk/gtkwidgetpaintable.c
+++ b/gtk/gtkwidgetpaintable.c
@@ -268,7 +268,7 @@ gtk_widget_paintable_init (GtkWidgetPaintable *self)
  *
  * Creates a new widget paintable observing the given widget.
  *
- * Returns: a new #GtkWidgetPaintable
+ * Returns: (transfer full) (type GtkWidgetPaintable): a new #GtkWidgetPaintable
  **/
 GdkPaintable *
 gtk_widget_paintable_new (GtkWidget *widget)


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