forked from AuroraMiddleware/gtk
widget: Remove goto usage in widget_allocate()
This commit is contained in:
parent
c8d356a250
commit
7a3e130efd
@ -4061,9 +4061,9 @@ gtk_widget_allocate (GtkWidget *widget,
|
||||
if (!alloc_needed && !size_changed && !baseline_changed)
|
||||
{
|
||||
gtk_widget_ensure_allocate_on_children (widget);
|
||||
goto skip_allocate;
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
priv->width = adjusted.width;
|
||||
priv->height = adjusted.height;
|
||||
priv->baseline = baseline;
|
||||
@ -4103,10 +4103,11 @@ gtk_widget_allocate (GtkWidget *widget,
|
||||
if (size_changed)
|
||||
gtk_accessible_bounds_changed (GTK_ACCESSIBLE (widget));
|
||||
|
||||
skip_allocate:
|
||||
if (size_changed || baseline_changed)
|
||||
gtk_widget_queue_draw (widget);
|
||||
else if (transform_changed && priv->parent)
|
||||
}
|
||||
|
||||
if (transform_changed && priv->parent)
|
||||
gtk_widget_queue_draw (priv->parent);
|
||||
|
||||
out:
|
||||
|
Loading…
Reference in New Issue
Block a user