[evolution-data-server] [EWebDAVDiscoverWidget] Minor changes to error label



commit 6cc12e2d498c9d2f96afefa7c770c789f208e59a
Author: Milan Crha <mcrha redhat com>
Date:   Thu Aug 31 10:20:10 2017 +0200

    [EWebDAVDiscoverWidget] Minor changes to error label
    
    Make the error label wrap the text and allow selecting the text.

 src/libedataserverui/e-webdav-discover-widget.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/libedataserverui/e-webdav-discover-widget.c b/src/libedataserverui/e-webdav-discover-widget.c
index c637540..af81d20 100644
--- a/src/libedataserverui/e-webdav-discover-widget.c
+++ b/src/libedataserverui/e-webdav-discover-widget.c
@@ -994,6 +994,9 @@ e_webdav_discover_content_show_error (GtkWidget *content,
        gtk_info_bar_set_show_close_button (data->info_bar, TRUE);
 
        label = gtk_label_new (error->message);
+       gtk_label_set_max_width_chars (GTK_LABEL (label), 120);
+       gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
+       gtk_label_set_selectable (GTK_LABEL (label), TRUE);
        gtk_container_add (GTK_CONTAINER (gtk_info_bar_get_content_area (data->info_bar)), label);
        gtk_widget_show (label);
        gtk_widget_show (GTK_WIDGET (data->info_bar));


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