From bd9bd1310bb3a55c499cc980926876720e2b61a2 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 4 May 2010 19:46:58 +0200 Subject: [PATCH] GtkStyleContext: Fix compiler warning. --- gtk/gtkstylecontext.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index d0f95cf989..b12fda318c 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;