GtkWidget: Set style context's screen before the widget_path.

This is so the style context has all necessary information before
triggering a style change on setting the path.
This commit is contained in:
Carlos Garnacho 2010-09-11 12:45:42 +02:00
parent 49ac732a18
commit 8dfa0e03ea

View File

@ -13402,13 +13402,12 @@ gtk_widget_get_style_context (GtkWidget *widget)
gtk_style_context_add_provider (context,
GTK_STYLE_PROVIDER (settings),
GTK_STYLE_PROVIDER_PRIORITY_SETTINGS);
gtk_style_context_set_screen (context,
gtk_widget_get_screen (widget));
path = gtk_widget_get_path (widget);
gtk_style_context_set_path (context, path);
gtk_widget_path_free (path);
gtk_style_context_set_screen (context,
gtk_widget_get_screen (widget));
}
return context;