Blob Blame History Raw
From 2689e36489ebb59d04b8f64860e28ac3d39fe88b Mon Sep 17 00:00:00 2001
From: Rui Matos <tiagomatos@gmail.com>
Date: Mon, 13 Jul 2015 14:29:46 +0200
Subject: [PATCH 1/3] 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 file changed, 1 insertion(+)

diff --git a/panels/region/cc-input-chooser.c b/panels/region/cc-input-chooser.c
index 297b79e..74a0f6d 100644
--- a/panels/region/cc-input-chooser.c
+++ b/panels/region/cc-input-chooser.c
@@ -138,6 +138,7 @@ padded_label_new (const gchar        *text,
 
   label = gtk_label_new (text);
   gtk_misc_set_alignment (GTK_MISC (label), alignment, 0.5);
+  gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_MIDDLE);
   set_row_widget_margins (label);
   gtk_box_pack_start (GTK_BOX (widget), label, TRUE, TRUE, 0);
   if (dim_label)
-- 
2.5.0