diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c index f6549194a7..da55c6a988 100644 --- a/gtk/gtktoolbar.c +++ b/gtk/gtktoolbar.c @@ -3513,8 +3513,20 @@ static void toolbar_content_size_allocate (ToolbarContent *content, GtkAllocation *allocation) { + GtkAllocation goal; + gtk_widget_size_allocate (GTK_WIDGET (content->item), allocation); + + toolbar_content_get_goal_allocation (content, &goal); + if (goal.x == allocation->x && + goal.y == allocation->y && + goal.width == allocation->width && + goal.height == allocation->height) + { + gtk_widget_get_allocation (GTK_WIDGET (content->item), &goal); + toolbar_content_set_goal_allocation (content, &goal); + } } static void