[gtk+/wip/otte/rendernode: 19/100] gtk: Remove gtk_snapshot_append()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/otte/rendernode: 19/100] gtk: Remove gtk_snapshot_append()
- Date: Sun, 18 Dec 2016 06:30:17 +0000 (UTC)
commit 6d866d8d1726c7fbb909cf8fdaef81ab774fe130
Author: Benjamin Otte <otte redhat com>
Date: Sun Dec 11 04:13:22 2016 +0100
gtk: Remove gtk_snapshot_append()
It does not make sense to append an empty container node. Those should
only be push()'d.
docs/reference/gtk/gtk4-sections.txt | 1 -
gtk/gtksnapshot.c | 47 ----------------------------------
gtk/gtksnapshot.h | 5 ---
3 files changed, 0 insertions(+), 53 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index cd61b1a..22ad5e8 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -4462,7 +4462,6 @@ gtk_snapshot_set_transform
gtk_snapshot_transform
gtk_snapshot_translate_2d
gtk_snapshot_append_node
-gtk_snapshot_append
gtk_snapshot_append_cairo_node
gtk_snapshot_clips_rect
gtk_snapshot_render_background
diff --git a/gtk/gtksnapshot.c b/gtk/gtksnapshot.c
index 3a57d44..803526b 100644
--- a/gtk/gtksnapshot.c
+++ b/gtk/gtksnapshot.c
@@ -337,53 +337,6 @@ gtk_snapshot_append_node (GtkSnapshot *snapshot,
}
/**
- * gtk_snapshot_append:
- * @snapshot: a #GtkSnapshot
- * @bounds: the bounds for the new node
- * @name: (transfer none): a printf() style format string for the name for the new node
- * @...: arguments to insert into the format string
- *
- * Creates a new render node and appends it to the current render
- * node of @snapshot, without changing the current node.
- *
- * Since: 3.90
- *
- * Returns: (transfer full): the newly created #GskRenderNode
- */
-GskRenderNode *
-gtk_snapshot_append (GtkSnapshot *snapshot,
- const graphene_rect_t *bounds,
- const char *name,
- ...)
-{
- GskRenderNode *node;
-
- g_return_val_if_fail (snapshot != NULL, NULL);
- g_return_val_if_fail (bounds != NULL, NULL);
-
- node = gsk_renderer_create_render_node (snapshot->renderer);
- gsk_render_node_set_bounds (node, bounds);
-
- if (name)
- {
- va_list args;
- char *str;
-
- va_start (args, name);
- str = g_strdup_vprintf (name, args);
- va_end (args);
-
- gsk_render_node_set_name (node, str);
-
- g_free (str);
- }
-
- gtk_snapshot_append_node (snapshot, node);
-
- return node;
-}
-
-/**
* gtk_snapshot_append_cairo_node:
* @snapshot: a #GtkSnapshot
* @bounds: the bounds for the new node
diff --git a/gtk/gtksnapshot.h b/gtk/gtksnapshot.h
index dbf8b76..d520106 100644
--- a/gtk/gtksnapshot.h
+++ b/gtk/gtksnapshot.h
@@ -65,11 +65,6 @@ GDK_AVAILABLE_IN_3_90
void gtk_snapshot_append_node (GtkSnapshot *snapshot,
GskRenderNode *node);
GDK_AVAILABLE_IN_3_90
-GskRenderNode * gtk_snapshot_append (GtkSnapshot *snapshot,
- const graphene_rect_t *bounds,
- const char *name,
- ...) G_GNUC_PRINTF(3, 4);
-GDK_AVAILABLE_IN_3_90
cairo_t * gtk_snapshot_append_cairo_node (GtkSnapshot *snapshot,
const graphene_rect_t *bounds,
const char *name,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]