summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-01-30 16:28:41 +0100
committerBenjamin Otte <otte@redhat.com>2015-03-18 15:23:29 +0100
commit6dc6af674c8c120192c15a943819fe2a152ddfe9 (patch)
tree48b2bdd228eece058e05c62c0b06b8e6b69bf26d
parent4cc2af2db13bbeda0a10adb3bce7b1fa4f28b03b (diff)
downloadgtk+-6dc6af674c8c120192c15a943819fe2a152ddfe9.tar.gz
stylecontext: Remove children list
It's not needed.
-rw-r--r--gtk/gtkstylecontext.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index f6bf2d39c1..d8b357755c 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -153,7 +153,6 @@ struct _GtkStyleContextPrivate
guint cascade_changed_id;
GtkStyleCascade *cascade;
GtkStyleContext *parent;
- GSList *children;
GtkCssNode *cssnode;
GSList *saved_nodes;
GArray *property_cache;
@@ -489,7 +488,6 @@ gtk_style_context_clear_parent (GtkStyleContext *context)
if (priv->parent)
{
- priv->parent->priv->children = g_slist_remove (priv->parent->priv->children, context);
g_object_unref (priv->parent);
}
}
@@ -505,9 +503,6 @@ gtk_style_context_finalize (GObject *object)
gtk_style_context_stop_animating (style_context);
- /* children hold a reference to us */
- g_assert (priv->children == NULL);
-
gtk_style_context_clear_parent (style_context);
gtk_style_context_set_cascade (style_context, NULL);
@@ -1475,7 +1470,6 @@ gtk_style_context_set_parent (GtkStyleContext *context,
if (parent)
{
- parent->priv->children = g_slist_prepend (parent->priv->children, context);
g_object_ref (parent);
gtk_css_node_set_parent (gtk_style_context_get_root (context),
gtk_style_context_get_root (parent));