headerbar: don't measure own size

This is fallout from an earlier commit, we should be checking the
child's size of course, not repeatedly the headerbar's.
This commit is contained in:
Timm Bäder 2017-06-30 11:49:41 +02:00 committed by Matthias Clasen
parent e25e1c54a4
commit a8561bcc99

View File

@ -701,7 +701,7 @@ gtk_header_bar_compute_size_for_orientation (GtkWidget *widget,
if (gtk_widget_get_visible (child->widget)) if (gtk_widget_get_visible (child->widget))
{ {
gtk_widget_measure (widget, GTK_ORIENTATION_HORIZONTAL, avail_size, gtk_widget_measure (child->widget, GTK_ORIENTATION_HORIZONTAL, avail_size,
&child_size, &child_natural, NULL, NULL); &child_size, &child_natural, NULL, NULL);
required_size += child_size; required_size += child_size;