From 154101448aec49093f06871b7a822eaaa56b221f Mon Sep 17 00:00:00 2001 From: Elias Entrup Date: Wed, 15 Nov 2017 11:26:33 +0100 Subject: [PATCH] display: Wrap frame subtitle label Currently, the display window is very wide due to the subtitle label. This patch adds line wrapping to the label and sets xalign to 0. https://bugzilla.gnome.org/show_bug.cgi?id=790449 --- panels/display/cc-display-panel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panels/display/cc-display-panel.c b/panels/display/cc-display-panel.c index 28c5e671a..21f597dca 100644 --- a/panels/display/cc-display-panel.c +++ b/panels/display/cc-display-panel.c @@ -643,6 +643,8 @@ make_frame (const gchar *title, const gchar *subtitle) if (subtitle) { label = gtk_label_new (subtitle); + gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); + gtk_label_set_xalign (GTK_LABEL (label), 0.0); gtk_widget_set_halign (label, GTK_ALIGN_START); gtk_container_add (GTK_CONTAINER (vbox), label); gtk_style_context_add_class (gtk_widget_get_style_context (label),