[evolution] Properly wrap text in 'Security Information' dialog



commit b9c5e4480babebc8b92b2d29b9fc9df0e9cc3a35
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jun 28 12:59:05 2018 +0200

    Properly wrap text in 'Security Information' dialog
    
    Signed/encrypted messages show a button to provide more detailed
    information and even the GtkLabel-s had set to wrap the text, it
    didn't fully work without also setting width-chars and
    max-width-chars properties.

 src/em-format/e-mail-part-secure-button.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/em-format/e-mail-part-secure-button.c b/src/em-format/e-mail-part-secure-button.c
index 2a9c6e1a25..4719448e16 100644
--- a/src/em-format/e-mail-part-secure-button.c
+++ b/src/em-format/e-mail-part-secure-button.c
@@ -241,6 +241,8 @@ secure_button_show_validity_dialog (EWebView *web_view,
        w = gtk_label_new (e_mail_formatter_secure_button_get_sign_description (validity->sign.status));
        gtk_misc_set_alignment ((GtkMisc *) w, 0.0, 0.5);
        gtk_label_set_line_wrap ((GtkLabel *) w, TRUE);
+       gtk_label_set_width_chars (GTK_LABEL (w), 80);
+       gtk_label_set_max_width_chars (GTK_LABEL (w), 100);
        gtk_container_add (GTK_CONTAINER (grid), w);
        if (validity->sign.description) {
                GtkTextBuffer *buffer;
@@ -277,6 +279,8 @@ secure_button_show_validity_dialog (EWebView *web_view,
        w = gtk_label_new (e_mail_formatter_secure_button_get_encrypt_description (validity->encrypt.status));
        gtk_misc_set_alignment ((GtkMisc *) w, 0.0, 0.5);
        gtk_label_set_line_wrap ((GtkLabel *) w, TRUE);
+       gtk_label_set_width_chars (GTK_LABEL (w), 80);
+       gtk_label_set_max_width_chars (GTK_LABEL (w), 100);
        gtk_container_add (GTK_CONTAINER (grid), w);
        if (validity->encrypt.description) {
                GtkTextBuffer *buffer;


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