[gnome-initial-setup] keyboard: Ellipsize input source labels
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] keyboard: Ellipsize input source labels
- Date: Wed, 17 Sep 2014 14:51:56 +0000 (UTC)
commit 2037d6b1d16db578d7939795f0b159427dcb3813
Author: Rui Matos <tiagomatos gmail com>
Date: Tue Sep 16 19:27:55 2014 +0200
keyboard: Ellipsize input source labels
Some input sources have unreasonably long labels which might make us
too wide. Ellipsize them.
https://bugzilla.gnome.org/show_bug.cgi?id=736764
.../pages/keyboard/cc-input-chooser.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gnome-initial-setup/pages/keyboard/cc-input-chooser.c
b/gnome-initial-setup/pages/keyboard/cc-input-chooser.c
index c071790..83aa4ce 100644
--- a/gnome-initial-setup/pages/keyboard/cc-input-chooser.c
+++ b/gnome-initial-setup/pages/keyboard/cc-input-chooser.c
@@ -228,6 +228,8 @@ input_widget_new (CcInputChooser *chooser,
gtk_widget_set_margin_end (widget->box, 10);
widget->label = gtk_label_new (name);
gtk_misc_set_alignment (GTK_MISC (widget->label), 0, 0.5);
+ gtk_label_set_ellipsize (GTK_LABEL (widget->label), PANGO_ELLIPSIZE_END);
+ gtk_label_set_max_width_chars (GTK_LABEL (widget->label), 40);
gtk_label_set_width_chars (GTK_LABEL (widget->label), 40);
gtk_box_pack_start (GTK_BOX (widget->box), widget->label, FALSE, FALSE, 0);
widget->checkmark = gtk_image_new_from_icon_name ("object-select-symbolic", GTK_ICON_SIZE_MENU);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]