diff options
author | Timm Bäder <mail@baedert.org> | 2018-07-08 12:19:35 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2018-07-08 21:50:59 +0200 |
commit | 9959ea98cd0cc19de07f07b1d7ac9e50a57967b9 (patch) | |
tree | 4eebe66334f9db8e2c105eeec3028d342f5d7227 | |
parent | 27ba2411f0ed45e196fd37b524801d4301de3d6c (diff) | |
download | gtk+-9959ea98cd0cc19de07f07b1d7ac9e50a57967b9.tar.gz |
Revert "snapshot: merge container nodes"
This reverts commit 622a150bb4a83afba909c051a4baf12a88868e62.
-rw-r--r-- | gtk/gtksnapshot.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/gtk/gtksnapshot.c b/gtk/gtksnapshot.c index fc71bbffa7..81e7419207 100644 --- a/gtk/gtksnapshot.c +++ b/gtk/gtksnapshot.c @@ -1086,22 +1086,8 @@ gtk_snapshot_append_node_internal (GtkSnapshot *snapshot, if (current_state) { - if (gsk_render_node_get_node_type (node) == GSK_CONTAINER_NODE) - { - guint i, p; - - for (i = 0, p = gsk_container_node_get_n_children (node); i < p; i ++) - g_ptr_array_add (snapshot->nodes, - gsk_render_node_ref (gsk_container_node_get_child (node, i))); - - current_state->n_nodes += p; - /* Don't unref @node... */ - } - else - { - g_ptr_array_add (snapshot->nodes, gsk_render_node_ref (node)); - current_state->n_nodes ++; - } + g_ptr_array_add (snapshot->nodes, gsk_render_node_ref (node)); + current_state->n_nodes ++; } else { |