headerbar: Duct-tape over the measure mess

Fixes various reftests.

The headerbar needs soeone to redo sizing.
This commit is contained in:
Benjamin Otte
2019-03-29 03:31:04 +01:00
parent 9ca5495380
commit 38fbb6856c

View File

@@ -879,12 +879,18 @@ gtk_header_bar_measure (GtkWidget *widget,
int *minimum_baseline,
int *natural_baseline)
{
int min, nat;
gtk_header_bar_get_size (widget, orientation, &min, &nat);
if (for_size < 0)
gtk_header_bar_get_size (widget, orientation, minimum, natural);
*natural = nat;
else if (orientation == GTK_ORIENTATION_HORIZONTAL)
gtk_header_bar_compute_size_for_orientation (widget, for_size, minimum, natural);
else
gtk_header_bar_compute_size_for_opposing_orientation (widget, for_size, minimum, natural);
*minimum = MAX (*minimum, min);
*natural = MAX (*natural, min);
}
static void