summaryrefslogtreecommitdiff
path: root/panels/color/cc-color-profile.c
diff options
context:
space:
mode:
authorAdrien Plazas <kekun.plazas@laposte.net>2019-01-22 00:01:16 +0100
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2019-01-29 10:35:18 +0000
commitb4520d07b5b7897e0ca750ac78fee6dc90292d00 (patch)
treee6e53f388a0b7116da97d9fe26ba19f7db856063 /panels/color/cc-color-profile.c
parenteaeb64d85e3a5551cf5337f5ce53ed4d6ee1d2f4 (diff)
downloadgnome-control-center-b4520d07b5b7897e0ca750ac78fee6dc90292d00.tar.gz
color: Make the row labels ellipsizable
This better allows to better handle a narrow window.
Diffstat (limited to 'panels/color/cc-color-profile.c')
-rw-r--r--panels/color/cc-color-profile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/panels/color/cc-color-profile.c b/panels/color/cc-color-profile.c
index e4d510dbf..6d835b41a 100644
--- a/panels/color/cc-color-profile.c
+++ b/panels/color/cc-color-profile.c
@@ -455,6 +455,8 @@ cc_color_profile_init (CcColorProfile *color_profile)
gtk_widget_set_margin_top (color_profile->widget_description, 9);
gtk_widget_set_margin_bottom (color_profile->widget_description, 9);
gtk_widget_set_halign (color_profile->widget_description, GTK_ALIGN_START);
+ gtk_label_set_ellipsize (GTK_LABEL (color_profile->widget_description), PANGO_ELLIPSIZE_END);
+ gtk_label_set_xalign (GTK_LABEL (color_profile->widget_description), 0);
gtk_box_pack_start (GTK_BOX (box), color_profile->widget_description, TRUE, TRUE, 0);
gtk_widget_show (color_profile->widget_description);