[gtk] Fix some g-i annotation warnings



commit f2937f8c453b58fd91c3f35b152dd736f4a3edf2
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Apr 1 09:15:08 2018 +0200

    Fix some g-i annotation warnings

 gsk/gskrendernode.h | 4 ++--
 gtk/gtksnapshot.c   | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gsk/gskrendernode.h b/gsk/gskrendernode.h
index e7604d6b65..d4c849208c 100644
--- a/gsk/gskrendernode.h
+++ b/gsk/gskrendernode.h
@@ -202,8 +202,8 @@ const graphene_matrix_t *
 
 GDK_AVAILABLE_IN_ALL
 GskRenderNode *         gsk_offset_node_new                     (GskRenderNode            *child,
-                                                                 double                    x,
-                                                                 double                    y);
+                                                                 double                    x_offset,
+                                                                 double                    y_offset);
 GDK_AVAILABLE_IN_ALL
 GskRenderNode *         gsk_offset_node_get_child               (GskRenderNode            *node);
 GDK_AVAILABLE_IN_ALL
diff --git a/gtk/gtksnapshot.c b/gtk/gtksnapshot.c
index 98994084ce..828f828799 100644
--- a/gtk/gtksnapshot.c
+++ b/gtk/gtksnapshot.c
@@ -210,7 +210,7 @@ gtk_snapshot_new (gboolean              record_names,
  * Returns the node that was constructed by @snapshot
  * and frees @snapshot.
  *
- * Returns: a newly-created #GskRenderNode
+ * Returns: (transfer full): a newly-created #GskRenderNode
  */
 GskRenderNode *
 gtk_snapshot_free_to_node (GtkSnapshot *snapshot)
@@ -230,7 +230,7 @@ gtk_snapshot_free_to_node (GtkSnapshot *snapshot)
  * Returns a paintable for the node that was
  * constructed by @snapshot and frees @snapshot.
  *
- * Returns: a newly-created #GdkPaintable
+ * Returns: (transfer full): a newly-created #GdkPaintable
  */
 GdkPaintable *
 gtk_snapshot_free_to_paintable (GtkSnapshot *snapshot)
@@ -1293,7 +1293,7 @@ gtk_snapshot_to_node (GtkSnapshot *snapshot)
  * nodes to @snapshot. The only function that should be
  * called after this is gtk_snapshot_unref().
  *
- * Returns: a new #GdkPaintable
+ * Returns: (transfer full): a new #GdkPaintable
  */
 GdkPaintable *
 gtk_snapshot_to_paintable (GtkSnapshot *snapshot)


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