[gnome-control-center] region: Avoid overly long labels causing horizontal scrolling



commit f2f4626f645f531637ec6ff790f0411811455e42
Author: Rui Matos <tiagomatos gmail com>
Date:   Mon Jul 13 14:29:46 2015 +0200

    region: Avoid overly long labels causing horizontal scrolling
    
    Just ellipsize them instead.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=752383

 panels/region/cc-input-chooser.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/region/cc-input-chooser.c b/panels/region/cc-input-chooser.c
index c597ec2..4722cf4 100644
--- a/panels/region/cc-input-chooser.c
+++ b/panels/region/cc-input-chooser.c
@@ -139,6 +139,7 @@ padded_label_new (const gchar        *text,
     }
 
   label = gtk_label_new (text);
+  gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_MIDDLE);
   gtk_widget_set_halign (label, alignment);
   set_row_widget_margins (label);
   gtk_box_pack_start (GTK_BOX (widget), label, TRUE, TRUE, 0);


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