[gtk+/wip/cssvalue: 29/141] widget: Replace reset_style() calls



commit 64cde1271ac1f89105878fdc7b24bbb56dc03dcf
Author: Benjamin Otte <otte redhat com>
Date:   Tue Mar 20 18:04:37 2012 +0100

    widget: Replace reset_style() calls
    
    ... with finer grained _gtk_widget_invalidate_style_context() calls.

 gtk/gtkwidget.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index c583ece..3db7328 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)



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