[gtk+/gtk-style-context: 82/347] GtkStyleContext: Fix compiler warning.



commit a8d9945315422a03693586cc70f0ab9fdea9cb6b
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]