widget: reset widget style after applying style classes from GtkBuilder

Otherwise, the parsed style classes do not get propagated to the
children.

https://bugzilla.gnome.org/show_bug.cgi?id=644925
This commit is contained in:
Cosimo Cecchi
2011-03-16 10:50:03 -04:00
parent 69b9794d9e
commit f4930dca55

View File

@ -12996,6 +12996,8 @@ gtk_widget_buildable_custom_finished (GtkBuildable *buildable,
for (l = style_data->classes; l; l = l->next)
gtk_style_context_add_class (context, (const gchar *)l->data);
gtk_widget_reset_style (GTK_WIDGET (buildable));
g_slist_free_full (style_data->classes, g_free);
g_slice_free (StyleParserData, style_data);
}