[gtk+/gtk-3-0] widget: reset widget style after applying style classes from GtkBuilder



commit b9b535d7a20c3414cd9d16ba592151f164cc928f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Mar 16 10:50:03 2011 -0400

    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

 gtk/gtkwidget.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index ce56072..b74f9ee 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -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);
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]