From 5361490db88974b529bf5a1ba79711fcb1c7249b Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sun, 5 Dec 2010 20:00:44 +0100 Subject: [PATCH] =?UTF-8?q?Bug=C2=A0636511=20-=20New=20style=20override=20?= =?UTF-8?q?functions=20do=20not=20work=20on=20textview?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Emit ::style-set on overrider style changes, this is necessary in the mean time so widgets not listening yet to ::style-updated get the style changes. --- gtk/gtkwidget.c | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index c0df69b59c..9f1d65e5af 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -7935,6 +7935,11 @@ modifier_style_changed (GtkModifierStyle *style, context = gtk_widget_get_style_context (widget); gtk_style_context_invalidate (context); + + g_signal_emit (widget, + widget_signals[STYLE_SET], + 0, + widget->priv->style); } static GtkModifierStyle * @@ -8188,11 +8193,6 @@ gtk_widget_modify_fg (GtkWidget *widget, } else gtk_widget_override_color (widget, state, NULL); - - g_signal_emit (widget, - widget_signals[STYLE_SET], - 0, - widget->priv->style); } /** @@ -8258,11 +8258,6 @@ gtk_widget_modify_bg (GtkWidget *widget, } else gtk_widget_override_background_color (widget, state, NULL); - - g_signal_emit (widget, - widget_signals[STYLE_SET], - 0, - widget->priv->style); } /** @@ -8396,11 +8391,6 @@ gtk_widget_modify_cursor (GtkWidget *widget, secondary_rgba.alpha = 1; gtk_widget_override_cursor (widget, &primary_rgba, &secondary_rgba); - - g_signal_emit (widget, - widget_signals[STYLE_SET], - 0, - widget->priv->style); } /** @@ -8421,11 +8411,6 @@ gtk_widget_modify_font (GtkWidget *widget, g_return_if_fail (GTK_IS_WIDGET (widget)); gtk_widget_override_font (widget, font_desc); - - g_signal_emit (widget, - widget_signals[STYLE_SET], - 0, - widget->priv->style); } static void