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



commit 154101448aec49093f06871b7a822eaaa56b221f
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 28c5e67..21f597d 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),


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