Commit 506fe619 authored by Matthias Clasen's avatar Matthias Clasen

Fix gtk_style_context_list_classes

The function was always returning NULL.
parent 83b8bcb6
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment