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,