[gtk+/gtk-style-context: 79/191] GtkStyleContext: fix typos in code.



commit c466ca0b8e0cfaa499ec4b70921d3ad2ac4caba1
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Apr 23 02:33:01 2010 +0200

    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 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index c4401cc..d0f95cf 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;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]