widget: Don't duplicate style context updates

The screen changes are done in do_screen_change(), the widget path is
updated in gtk_widget_reset_style().
This commit is contained in:
Benjamin Otte 2011-03-27 01:52:16 +01:00
parent fb65806c8c
commit d7ca207133

View File

@ -7747,19 +7747,6 @@ gtk_widget_set_parent (GtkWidget *widget,
gtk_widget_queue_compute_expand (parent);
}
if (widget->priv->context)
{
GdkScreen *screen;
_gtk_widget_update_path (widget);
gtk_style_context_set_path (widget->priv->context, widget->priv->path);
screen = gtk_widget_get_screen (widget);
if (screen)
gtk_style_context_set_screen (widget->priv->context, screen);
}
gtk_widget_pop_verify_invariants (widget);
}