[gnome-control-center] privacy: Ellipsize the labels
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] privacy: Ellipsize the labels
- Date: Fri, 30 Nov 2018 14:43:00 +0000 (UTC)
commit 063656de0d3ab806388b05d195bfe2a64e56c767
Author: Adrien Plazas <kekun plazas laposte net>
Date: Tue Nov 27 11:58:40 2018 +0100
privacy: Ellipsize the labels
This will help the window to fit narrow screens.
panels/privacy/cc-privacy-panel.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/panels/privacy/cc-privacy-panel.c b/panels/privacy/cc-privacy-panel.c
index 1f64d3b2b..a2ba67ec4 100644
--- a/panels/privacy/cc-privacy-panel.c
+++ b/panels/privacy/cc-privacy-panel.c
@@ -320,6 +320,8 @@ add_row (CcPrivacyPanel *self,
gtk_widget_set_halign (w, GTK_ALIGN_START);
gtk_widget_set_valign (w, GTK_ALIGN_CENTER);
gtk_widget_set_hexpand (w, TRUE);
+ gtk_label_set_ellipsize (GTK_LABEL (w), PANGO_ELLIPSIZE_END);
+ gtk_label_set_xalign (GTK_LABEL (w), 0.0f);
gtk_box_pack_start (GTK_BOX (box), w, TRUE, TRUE, 0);
gtk_widget_set_halign (status, GTK_ALIGN_END);
gtk_widget_set_valign (status, GTK_ALIGN_CENTER);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]