[gtk/wip/baedert/for-master: 34/43] snapshot: Stop exporting _append_node_internal
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 34/43] snapshot: Stop exporting _append_node_internal
- Date: Mon, 19 Aug 2019 08:28:33 +0000 (UTC)
commit bcee0a26b65b49170c7cbc300ac1cc272f2ac518
Author: Timm Bäder <mail baedert org>
Date: Fri Aug 16 07:17:41 2019 +0200
snapshot: Stop exporting _append_node_internal
Unused outside of gtksnapshot.c
gtk/gtksnapshot.c | 38 +++++++++++++++++++-------------------
gtk/gtksnapshotprivate.h | 3 ---
2 files changed, 19 insertions(+), 22 deletions(-)
---
diff --git a/gtk/gtksnapshot.c b/gtk/gtksnapshot.c
index 8925672f18..46a8cecfdc 100644
--- a/gtk/gtksnapshot.c
+++ b/gtk/gtksnapshot.c
@@ -1044,6 +1044,25 @@ gtk_snapshot_pop_one (GtkSnapshot *snapshot)
return node;
}
+static void
+gtk_snapshot_append_node_internal (GtkSnapshot *snapshot,
+ GskRenderNode *node)
+{
+ GtkSnapshotState *current_state;
+
+ current_state = gtk_snapshot_get_current_state (snapshot);
+
+ if (current_state)
+ {
+ g_ptr_array_add (snapshot->nodes, node);
+ current_state->n_nodes ++;
+ }
+ else
+ {
+ g_critical ("Tried appending a node to an already finished snapshot.");
+ }
+}
+
static GskRenderNode *
gtk_snapshot_pop_internal (GtkSnapshot *snapshot)
{
@@ -1419,25 +1438,6 @@ gtk_snapshot_perspective (GtkSnapshot *snapshot,
state->transform = gsk_transform_perspective (state->transform, depth);
}
-void
-gtk_snapshot_append_node_internal (GtkSnapshot *snapshot,
- GskRenderNode *node)
-{
- GtkSnapshotState *current_state;
-
- current_state = gtk_snapshot_get_current_state (snapshot);
-
- if (current_state)
- {
- g_ptr_array_add (snapshot->nodes, node);
- current_state->n_nodes ++;
- }
- else
- {
- g_critical ("Tried appending a node to an already finished snapshot.");
- }
-}
-
/**
* gtk_snapshot_append_node:
* @snapshot: a #GtkSnapshot
diff --git a/gtk/gtksnapshotprivate.h b/gtk/gtksnapshotprivate.h
index 5bee5e21dc..e02531e1a5 100644
--- a/gtk/gtksnapshotprivate.h
+++ b/gtk/gtksnapshotprivate.h
@@ -96,9 +96,6 @@ struct _GtkSnapshotClass {
GObjectClass parent_class; /* it's really GdkSnapshotClass, but don't tell anyone! */
};
-void gtk_snapshot_append_node_internal (GtkSnapshot *snapshot,
- GskRenderNode *node);
-
GtkSnapshot * gtk_snapshot_new_with_parent (GtkSnapshot *parent_snapshot);
void gtk_snapshot_append_text (GtkSnapshot *snapshot,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]