Avoid tons of warnings from stylecontext initialization without screen

This reverts part of commit 4dc9b29.
This commit is contained in:
Matthias Clasen
2011-02-05 11:21:21 -05:00
parent 2e093cdc20
commit bfaf472e70

View File

@@ -14179,7 +14179,7 @@ gtk_widget_get_style_context (GtkWidget *widget)
G_CALLBACK (style_context_changed), widget);
gtk_style_context_set_screen (widget->priv->context,
gtk_widget_get_screen_unchecked (widget));
gtk_widget_get_screen (widget));
_gtk_widget_update_path (widget);
gtk_style_context_set_path (widget->priv->context,