From 27c9352df37895fc1220b35ba9930b40e9cadfc8 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 20 Mar 2012 18:04:37 +0100 Subject: [PATCH] widget: Replace reset_style() calls ... with finer grained _gtk_widget_invalidate_style_context() calls. --- gtk/gtkwidget.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index f9090dc5ce..4738d2a364 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -7281,7 +7281,7 @@ gtk_widget_set_name (GtkWidget *widget, g_free (priv->name); priv->name = new_name; - gtk_widget_reset_style (widget); + _gtk_widget_invalidate_style_context (widget, GTK_CSS_CHANGE_NAME); g_object_notify (G_OBJECT (widget), "name"); } @@ -8041,7 +8041,6 @@ gtk_widget_set_parent (GtkWidget *widget, if (priv->context) gtk_style_context_set_parent (priv->context, gtk_widget_get_style_context (parent)); - gtk_widget_reset_style (widget); g_signal_emit (widget, widget_signals[PARENT_SET], 0, NULL); if (priv->parent->priv->anchored)