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:
@ -7747,19 +7747,6 @@ gtk_widget_set_parent (GtkWidget *widget,
|
|||||||
gtk_widget_queue_compute_expand (parent);
|
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);
|
gtk_widget_pop_verify_invariants (widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user