mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
path bar: Request enough natural width to fit all buttons
Otherwise, we are at the mercy of the container giving us more space than we request, which does not always work.
This commit is contained in:
parent
78c177fb28
commit
7c08896384
@ -371,7 +371,7 @@ gtk_path_bar_get_preferred_width (GtkWidget *widget,
|
||||
}
|
||||
|
||||
*minimum = MAX (*minimum, child_min);
|
||||
*natural = MAX (*natural, child_nat);
|
||||
*natural = *natural + child_nat;
|
||||
}
|
||||
|
||||
/* Add space for slider, if we have more than one path */
|
||||
|
Loading…
Reference in New Issue
Block a user