Commit 5f525839 authored by Chun-wei Fan's avatar Chun-wei Fan

gtk/gtkstylecascade.c: Declare variables at beginning of block

parent cd44f6d8
......@@ -49,10 +49,11 @@ gtk_style_cascade_iter_next (GtkStyleCascade *cascade,
for (cas = cascade, ix = 0; ix < iter->n_cascades; cas = cas->parent, ix++)
{
GtkStyleProviderData *data;
if (iter->cascade_index[ix] <= 0)
continue;
GtkStyleProviderData *data = &g_array_index (cas->providers,
data = &g_array_index (cas->providers,
GtkStyleProviderData,
iter->cascade_index[ix] - 1);
if (highest_priority_data == NULL || data->priority > highest_priority_data->priority)
......
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