Is the --hight option in an --error dialog restricted to >= 200?

7 views
Skip to first unread message

Atishtum Rah

unread,
Apr 9, 2026, 2:20:56 PM (12 days ago) Apr 9
to yad-common
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[@]}"

Ananas

unread,
Apr 12, 2026, 1:33:27 AM (9 days ago) Apr 12
to yad-c...@googlegroups.com
this is gtk behavior. add --text-width argument to avoid this

чт, 9 квіт. 2026 р. о 21:20 Atishtum Rah <atis...@gmail.com> пише:
> --
> You received this message because you are subscribed to the Google Groups "yad-common" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to yad-common+...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/yad-common/79f17cd1-bf31-490d-9673-f70f8a42721bn%40googlegroups.com.



--
wbr,

Victor "Ananas" Ananjevsky
Reply all
Reply to author
Forward
0 new messages