[gnome-control-center/gnome-3-26] display: Wrap frame subtitle label



commit f4977a05b538321744327000ca53964de0999c02
Author: Elias Entrup <elias-git flump de>
Date:   Wed Nov 15 11:26:33 2017 +0100

    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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/panels/display/cc-display-panel.c b/panels/display/cc-display-panel.c
index 071e986..e84a53e 100644
--- a/panels/display/cc-display-panel.c
+++ b/panels/display/cc-display-panel.c
@@ -650,6 +650,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),


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