I use the following code in my bash scripts to display error messages. The error messages consist of a maximum 5 lines of text but the dialog insists of allowing space for at least 10 lines (no matter how small I set the --height option to).
Is this a hard-coded limit within yad or is it a GTK+ limit?
error_comargs=(
--error
--image dialog-error
--no-escape
--button yad-close:1
--center
--height 200
--width 400
--title "${DialogTitle}"
--text "A text option after the error_comargs array will override this default text."
)
yad_cmd=(
"${error_comargs[@]}"
--text "{ErrorMessage}"
)
yad "${yad_cmd[@]}"