We use a label_sizing_box to make sure the headerbar can always contain
both a title and a subtitle without resizing when showing/hiding either
of them, but we should only do that for the height; the min width of the
label_box can be larger than that of the label_sizing_box.
center_min = center_nat = 0;
if (priv->label_box != NULL)
{
- if (add_child_size (priv->label_sizing_box, orientation, ¢er_min, ¢er_nat))
+ if (orientation == GTK_ORIENTATION_HORIZONTAL)
+ add_child_size (priv->label_box, orientation, ¢er_min, ¢er_nat);
+ else
+ add_child_size (priv->label_sizing_box, orientation, ¢er_min, ¢er_nat);
+
+ if (_gtk_widget_get_visible (priv->label_sizing_box))
nvis_children += 1;
}