mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 08:40:08 +00:00
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:
parent
fb65806c8c
commit
d7ca207133
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user