[gtk/wip/otte/transform: 18/41] snapshot: Remove gtk_snapshot_get_offset()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/transform: 18/41] snapshot: Remove gtk_snapshot_get_offset()
- Date: Thu, 21 Feb 2019 04:39:50 +0000 (UTC)
commit f09546672db0dd0ac1ed5069bd1e9c2456edcf91
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 86419e716a..bc5415f7b3 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -4399,7 +4399,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]