Fixed extended layout implementors to not call ->get_desired_size() directly
Getting the desired size of a GtkWidget must always be done with gtk_widget_get_desired_size() and never with gtk_extended_layout_get_desired_size() directly as the former passes through size group logic and updates the widget->requisition cache.
This commit is contained in:
@ -461,7 +461,7 @@ gtk_alignment_size_allocate (GtkWidget *widget,
|
||||
{
|
||||
GtkExtendedLayout *layout = GTK_EXTENDED_LAYOUT (bin->child);
|
||||
|
||||
gtk_extended_layout_get_desired_size (layout, NULL, &child_requisition);
|
||||
gtk_widget_get_desired_size (GTK_WIDGET (layout), NULL, &child_requisition);
|
||||
|
||||
border_width = GTK_CONTAINER (alignment)->border_width;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user