[evolution-ews] Set max-width-chars to wrapped GtkLabel-s



commit 214513d8dae19f6694aff43c924f2b31a06ce14a
Author: Milan Crha <mcrha redhat com>
Date:   Tue Nov 25 08:29:07 2014 +0100

    Set max-width-chars to wrapped GtkLabel-s
    
    Without that the mail account Preferences take whole screen width
    with gtk 3.14.x.

 .../e-mail-config-ews-delegates-page.c             |    2 ++
 src/configuration/e-mail-config-ews-ooo-page.c     |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/configuration/e-mail-config-ews-delegates-page.c 
b/src/configuration/e-mail-config-ews-delegates-page.c
index ced835b..e837c25 100644
--- a/src/configuration/e-mail-config-ews-delegates-page.c
+++ b/src/configuration/e-mail-config-ews-delegates-page.c
@@ -1123,6 +1123,7 @@ mail_config_ews_delegates_page_constructed (GObject *object)
                "responding to meeting requests. If you want to grant folder "
                "permissions without giving send-on-behalf-of permissions, close this "
                "dialog box, right-click the folder, click Permissions and change the options there."));
+       gtk_label_set_max_width_chars (GTK_LABEL (widget), 80);
        gtk_label_set_line_wrap (GTK_LABEL (widget), TRUE);
        gtk_misc_set_alignment (GTK_MISC (widget), 0.0, 0.5);
        gtk_grid_attach (grid, widget, 0, row, 2, 1);
@@ -1170,6 +1171,7 @@ mail_config_ews_delegates_page_constructed (GObject *object)
        widget = gtk_label_new (
                _("Deliver meeting requests addressed to me and responses to meeting "
                "requests where I am the organizer to:"));
+       gtk_label_set_max_width_chars (GTK_LABEL (widget), 80);
        gtk_label_set_line_wrap (GTK_LABEL (widget), TRUE);
        gtk_misc_set_alignment (GTK_MISC (widget), 0.0, 0.5);
        gtk_grid_attach (grid, widget, 0, row, 2, 1);
diff --git a/src/configuration/e-mail-config-ews-ooo-page.c b/src/configuration/e-mail-config-ews-ooo-page.c
index a4a84e4..e882654 100644
--- a/src/configuration/e-mail-config-ews-ooo-page.c
+++ b/src/configuration/e-mail-config-ews-ooo-page.c
@@ -448,6 +448,7 @@ mail_config_ews_ooo_page_constructed (GObject *object)
        text = _("The messages specified below will be automatically sent to "
                 "each internal and external person who sends a mail to you.");
        widget = gtk_label_new (text);
+       gtk_label_set_max_width_chars (GTK_LABEL (widget), 80);
        gtk_label_set_line_wrap (GTK_LABEL (widget), TRUE);
        gtk_misc_set_alignment (GTK_MISC (widget), 0.0, 0.5);
        gtk_box_pack_start (GTK_BOX (container), widget, FALSE, FALSE, 0);


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