color: Make the row labels ellipsizable

This better allows to better handle a narrow window.
This commit is contained in:
Adrien Plazas 2019-01-22 00:01:16 +01:00 committed by Georges Basile Stavracas Neto
parent eaeb64d85e
commit b4520d07b5
2 changed files with 4 additions and 0 deletions

View file

@ -274,6 +274,8 @@ cc_color_device_init (CcColorDevice *color_device)
gtk_widget_set_margin_top (color_device->widget_description, 12);
gtk_widget_set_margin_bottom (color_device->widget_description, 12);
gtk_widget_set_halign (color_device->widget_description, GTK_ALIGN_START);
gtk_label_set_ellipsize (GTK_LABEL (color_device->widget_description), PANGO_ELLIPSIZE_END);
gtk_label_set_xalign (GTK_LABEL (color_device->widget_description), 0);
gtk_box_pack_start (GTK_BOX (box), color_device->widget_description, TRUE, TRUE, 0);
/* switch */

View file

@ -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);