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

This commit is contained in:
Chun-wei Fan 2016-06-27 11:58:42 +08:00
parent cd44f6d875
commit 5f525839da

View File

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