]> Pileus Git - ~andy/gtk/commitdiff
widget: reset widget style after applying style classes from GtkBuilder
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 16 Mar 2011 14:50:03 +0000 (10:50 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 16 Mar 2011 14:52:32 +0000 (10:52 -0400)
Otherwise, the parsed style classes do not get propagated to the
children.

https://bugzilla.gnome.org/show_bug.cgi?id=644925

gtk/gtkwidget.c

index ce56072396f547ba7d69fe3e41278d56a571f33e..b74f9ee5d6dad4f6aa10a814ae2e385cd3469759 100644 (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);
     }