[zenity/wip/davidk/msgdialog-max-width] msg: Fix maximum width to 60 characters




commit 686660c6cf604dcad6c634884ec05d5f9b0d31e2
Author: David King <amigadave amigadave com>
Date:   Mon Apr 25 13:42:41 2022 +0100

    msg: Fix maximum width to 60 characters
    
    Commit 3b64d05e8a1aae1581d2bec7288d80ac4699e1b1 mentioned that labels in
    message dialogs were set to a maximum width of 60 characters, with
    inspiration from GtkMessageDialog, but in fact a typo meant that they
    were set to both a width and maximum width of just 10 characters. This
    lead to text layout problems, which can be fixed by using the intended
    maximum of 60 characters.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=2053530

 src/msg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/msg.c b/src/msg.c
index 496fe185..8134e83e 100644
--- a/src/msg.c
+++ b/src/msg.c
@@ -207,7 +207,7 @@ zenity_msg (ZenityData *data, ZenityMsgData *msg_data) {
                // text,
                // decreasing to 10 fix it.
                gtk_label_set_width_chars (GTK_LABEL (text), 10);
-               gtk_label_set_max_width_chars (GTK_LABEL (text), 10);
+               gtk_label_set_max_width_chars (GTK_LABEL (text), 60);
        }
 
        if (data->modal)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]