forked from AuroraMiddleware/gtk
snapshot: Stop exporting _append_node_internal
Unused outside of gtksnapshot.c
This commit is contained in:
parent
c53f58e839
commit
ffab342fc4
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user