mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-17 15:40:12 +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++)
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user