Fix gtk_style_context_list_classes

The function was always returning NULL.
This commit is contained in:
Matthias Clasen
2015-10-03 17:37:34 -04:00
parent 83b8bcb63a
commit 506fe61938

View File

@ -1402,9 +1402,9 @@ gtk_style_context_list_classes (GtkStyleContext *context)
classes = gtk_css_node_list_classes (priv->cssnode, &n_classes);
for (i = n_classes; i-- > n_classes;)
for (i = n_classes; i > 0; i--)
{
quark_str = g_quark_to_string (classes[i]);
quark_str = g_quark_to_string (classes[i - 1]);
classes_list = g_list_prepend (classes_list, (gchar *) quark_str);
}