From cf27f6f1cfb7fb40ced5bb86e3cbbde58f0c6c2c Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 23 Apr 2010 02:33:01 +0200 Subject: [PATCH] GtkStyleContext: fix typos in code. The wrong list was being modified in gtk_style_context_set_child_class(), and gtk_style_context_has_child_class() was checking for *flags != 0, not flags != NULL. --- gtk/gtkstylecontext.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index c4401cc155..d0f95cf989 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -513,7 +513,7 @@ gtk_style_context_set_child_class (GtkStyleContext *context, priv = GTK_STYLE_CONTEXT_GET_PRIVATE (context); class_quark = g_quark_from_string (class_name); - link = priv->style_classes; + link = priv->child_style_classes; while (link) { @@ -537,10 +537,10 @@ gtk_style_context_set_child_class (GtkStyleContext *context, child_class->flags = flags; if (link) - priv->style_classes = g_list_insert_before (priv->style_classes, - link, child_class); + priv->child_style_classes = g_list_insert_before (priv->child_style_classes, + link, child_class); else - priv->style_classes = g_list_append (priv->style_classes, child_class); + priv->child_style_classes = g_list_append (priv->child_style_classes, child_class); } void @@ -603,7 +603,7 @@ gtk_style_context_has_child_class (GtkStyleContext *context, if (link) { - if (*flags_return) + if (flags_return) { GtkChildClass *found_class;