mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
gtk/gtkstylecascade.c: Declare variables at beginning of block
This commit is contained in:
parent
cd44f6d875
commit
5f525839da
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user