From 036a3b7718f827f2092014c90e883023f125fa7d Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Wed, 22 Mar 2023 04:08:18 +0100 Subject: src/prompt-box.vala: enable line wrapping for (error) messages. Long lines were previously truncated as part of the fading label. Since PAM (error) messages are shown within the prompt box, truncating them is a really bad idea, since the user might not understand what went wrong and how it can be fixed. Enabling line wrapping makes sure that the full message is always shown - at least theoretically. Messages may still be truncated if they are long enough to overflow the prompt box itself, but this is caused by the prompt box not resizing itself correctly. Further work on that is necessary. --- src/prompt-box.vala | 1 + 1 file changed, 1 insertion(+) (limited to 'src/prompt-box.vala') diff --git a/src/prompt-box.vala b/src/prompt-box.vala index ffce61c..6953c1b 100644 --- a/src/prompt-box.vala +++ b/src/prompt-box.vala @@ -555,6 +555,7 @@ public class PromptBox : FadableBox public void add_message (string text, bool is_error) { var label = new FadingLabel (text); + label.set_line_wrap (true); var style_ctx = label.get_style_context(); -- cgit v1.2.3