forked from AuroraMiddleware/gtk
stylecontext: Don't queue_resize() all the time
When a parent style context exists, there's no need to queue_resize() on the widget, because the parent widget will call gtk_style_context_validate() on us and _then_ we can call queue_resize() if we have to.
This commit is contained in:
parent
a8efb784d7
commit
580b5e4a83
@ -1030,10 +1030,10 @@ gtk_style_context_set_invalid (GtkStyleContext *context,
|
||||
|
||||
if (invalid)
|
||||
{
|
||||
if (priv->widget)
|
||||
gtk_widget_queue_resize (priv->widget);
|
||||
if (priv->parent)
|
||||
gtk_style_context_set_invalid (priv->parent, TRUE);
|
||||
else if (priv->widget)
|
||||
gtk_widget_queue_resize (priv->widget);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user