diff options
author | Benjamin Otte <otte@redhat.com> | 2019-02-21 03:28:12 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2019-02-21 19:47:28 +0100 |
commit | 2bdc0748e50d5b3e6d2dfc5c2210686b8ca0baad (patch) | |
tree | 8376938ed5f41eabe21ac7a304bf49af93c5ec04 | |
parent | 1ef250f44a93504bf154afca32cd2d4cc0908780 (diff) | |
download | gtk+-2bdc0748e50d5b3e6d2dfc5c2210686b8ca0baad.tar.gz |
snapshot: Remove gtk_snapshot_get_offset()
We use append() functions for everything now, thank you very much.
-rw-r--r-- | docs/reference/gtk/gtk4-sections.txt | 1 | ||||
-rw-r--r-- | gtk/gtksnapshot.c | 32 | ||||
-rw-r--r-- | gtk/gtksnapshot.h | 5 |
3 files changed, 0 insertions, 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 |