From cc8012eb3262a242127e1f068c9c4cfe6e4b2c74 Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Thu, 15 Dec 2011 01:29:26 +0000 Subject: [PATCH] widget: Set style flags on the style context when the flags are set This will allow us to simplify most draw methods by not having to explicitly set the style flags on the context. --- gtk/gtkwidget.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 561aa8932e..ff7ede351b 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -10708,6 +10708,8 @@ gtk_widget_propagate_state (GtkWidget *widget, if (!gtk_widget_is_sensitive (widget) && gtk_widget_has_grab (widget)) gtk_grab_remove (widget); + gtk_style_context_set_state (gtk_widget_get_style_context (widget), new_flags); + g_signal_emit (widget, widget_signals[STATE_CHANGED], 0, old_state); g_signal_emit (widget, widget_signals[STATE_FLAGS_CHANGED], 0, old_flags);