[evolution/gnome-3-18] Bug 759201 - Sign/Encrypt bar in message preview doesn't wrap



commit 37527af3ad05d7948077fd81ac68f3b155f2dda9
Author: Milan Crha <mcrha redhat com>
Date:   Fri Jan 29 11:39:00 2016 +0100

    Bug 759201 - Sign/Encrypt bar in message preview doesn't wrap

 em-format/e-mail-formatter-secure-button.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/em-format/e-mail-formatter-secure-button.c b/em-format/e-mail-formatter-secure-button.c
index 36f9b2c..0ed0ef4 100644
--- a/em-format/e-mail-formatter-secure-button.c
+++ b/em-format/e-mail-formatter-secure-button.c
@@ -425,9 +425,17 @@ secure_button_get_widget_for_validity (CamelCipherValidity *validity)
        gtk_button_set_image (GTK_BUTTON (button), widget);
 
        widget = gtk_label_new (description);
+       g_object_set (G_OBJECT (widget),
+               "wrap", TRUE,
+               "width-chars", 20,
+               "max-width-chars", 80,
+               "xalign", 0.0,
+               "halign", GTK_ALIGN_FILL,
+               "hexpand", TRUE,
+               NULL);
        /* make sure the text color doesn't change with theme */
        gtk_widget_override_color (widget, GTK_STATE_FLAG_NORMAL, &smime_sign_colour[5]);
-       gtk_box_pack_start (GTK_BOX (layout), widget, FALSE, FALSE, 0);
+       gtk_box_pack_start (GTK_BOX (layout), widget, TRUE, TRUE, 0);
 
        g_free (description);
 


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