[gtk] snapshot: Remove gtk_snapshot_get_offset()



commit 2bdc0748e50d5b3e6d2dfc5c2210686b8ca0baad
Author: Benjamin Otte <otte redhat com>
Date:   Thu Feb 21 03:28:12 2019 +0100

    snapshot: Remove gtk_snapshot_get_offset()
    
    We use append() functions for everything now, thank you very much.

 docs/reference/gtk/gtk4-sections.txt |  1 -
 gtk/gtksnapshot.c                    | 32 --------------------------------
 gtk/gtksnapshot.h                    |  5 -----
 3 files changed, 38 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index c82f4b8c43..1ed8a64df7 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -4403,7 +4403,6 @@ gtk_snapshot_push_cross_fade
 gtk_snapshot_push_blend
 gtk_snapshot_pop
 gtk_snapshot_offset
-gtk_snapshot_get_offset
 gtk_snapshot_append_node
 gtk_snapshot_append_cairo
 gtk_snapshot_append_texture
diff --git a/gtk/gtksnapshot.c b/gtk/gtksnapshot.c
index 0caa0ef078..11dfa7bff8 100644
--- a/gtk/gtksnapshot.c
+++ b/gtk/gtksnapshot.c
@@ -1167,38 +1167,6 @@ gtk_snapshot_offset (GtkSnapshot *snapshot,
   current_state->transform = gtk_transform_translate (current_state->transform, &GRAPHENE_POINT_INIT (x, y));
 }
 
-/**
- * gtk_snapshot_get_offset:
- * @snapshot: a #GtkSnapshot
- * @x: (out) (optional): return location for x offset
- * @y: (out) (optional): return location for y offset
- *
- * Queries the offset managed by @snapshot. This offset is the
- * accumulated sum of calls to gtk_snapshot_offset().
- *
- * Use this offset to determine how to offset nodes that you
- * manually add to the snapshot using
- * gtk_snapshot_append().
- *
- * Note that other functions that add nodes for you, such as
- * gtk_snapshot_append_cairo() will add this offset for
- * you.
- **/
-void
-gtk_snapshot_get_offset (GtkSnapshot *snapshot,
-                         int         *x,
-                         int         *y)
-{
-  /* FIXME: remove this function */
-  gtk_snapshot_ensure_identity (snapshot);
-
-  if (x)
-    *x = 0;
-
-  if (y)
-    *y = 0;
-}
-
 void
 gtk_snapshot_append_node_internal (GtkSnapshot   *snapshot,
                                    GskRenderNode *node)
diff --git a/gtk/gtksnapshot.h b/gtk/gtksnapshot.h
index 05cf3f5867..485d160fc0 100644
--- a/gtk/gtksnapshot.h
+++ b/gtk/gtksnapshot.h
@@ -109,11 +109,6 @@ void            gtk_snapshot_offset                     (GtkSnapshot
                                                          int                     x,
                                                          int                     y);
 GDK_AVAILABLE_IN_ALL
-void            gtk_snapshot_get_offset                 (GtkSnapshot            *snapshot,
-                                                         int                    *x,
-                                                         int                    *y);
-
-GDK_AVAILABLE_IN_ALL
 void            gtk_snapshot_append_node                (GtkSnapshot            *snapshot,
                                                          GskRenderNode          *node);
 GDK_AVAILABLE_IN_ALL


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