diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c index 0f60dcdfe4..2e7c035705 100644 --- a/gtk/gtksettings.c +++ b/gtk/gtksettings.c @@ -1843,12 +1843,13 @@ GtkStyleCascade * _gtk_settings_get_style_cascade (GtkSettings *settings, gint scale) { - GtkSettingsPrivate *priv = settings->priv; + GtkSettingsPrivate *priv; GtkStyleCascade *new_cascade; GSList *list; g_return_val_if_fail (GTK_IS_SETTINGS (settings), NULL); + priv = settings->priv; for (list = priv->style_cascades; list; list = list->next) { if (_gtk_style_cascade_get_scale (list->data) == scale)