[evolution/gnome-3-28] Properly wrap text in 'Security Information' dialog
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-28] Properly wrap text in 'Security Information' dialog
- Date: Thu, 28 Jun 2018 11:02:06 +0000 (UTC)
commit d95d0a8def4508039eaa1ea7d90c6bda4b6dfdcd
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]