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:
Matthias Clasen 2014-01-18 17:55:04 -05:00
parent 78c177fb28
commit 7c08896384

View File

@ -371,7 +371,7 @@ gtk_path_bar_get_preferred_width (GtkWidget *widget,
} }
*minimum = MAX (*minimum, child_min); *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 */ /* Add space for slider, if we have more than one path */