Using zenity version 3.14.0 and am trying to get insight into how to deal with the problem of the zenity windows being too wide. The problem shows itself when, say, a zenity info box is displaying a long string of text and spaces that have no newlines. This problem did not happen in version 3.4.0. The zenity window attains a width matching the width of the display before it word wraps. In addition, the --width
option has no effect, as seen by:
zenity --info --width=700 --text="Here is a text string that is so long that the \"--width\" option should have caused it to word wrap, but a \"wmctrl -lG\" command shows that this window has a width of over 1400!"
(If it matters, I get a "Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged." squawk when running the above command from a terminal...)
This exact problem was addressed in https://github.com/clue/reactphp-zenity/issues/40, but I could not figure out what was done to fix the problem (inspired by the information in the above link, I downloaded the Debian Jessie source code for the Zenity package and grepped the files for the term setWidth
with no joy...).
Is there a patch or something available?
InfoDialog extends
... what does that tell you? – jsotola Nov 09 '20 at 23:48setWidth()
... I may be misunderstanding the problem – jsotola Nov 10 '20 at 02:13