[gtk+/gtk-style-context: 83/191] GtkStyleContext: Fix compiler warning.



commit a210bcb6725c877a7690ac830c49b9bdd760b132
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue May 4 19:46:58 2010 +0200

    GtkStyleContext: Fix compiler warning.

 gtk/gtkstylecontext.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index d0f95cf..b12fda3 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -488,11 +488,13 @@ gtk_style_context_list_child_classes (GtkStyleContext *context)
   while (link)
     {
       GtkChildClass *link_class;
+      const gchar *child_class;
 
       link_class = link->data;
-      classes = g_list_prepend (classes,
-                                g_quark_to_string (link_class->class_quark));
       link = link->next;
+
+      child_class = g_quark_to_string (link_class->class_quark);
+      classes = g_list_prepend (classes, child_class);
     }
 
   return classes;



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