[gnome-control-center] online-accounts: Ellipsize the labels
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] online-accounts: Ellipsize the labels
- Date: Fri, 30 Nov 2018 14:42:45 +0000 (UTC)
commit e76fca5e6e821c0d789849f1c28488344e39d800
Author: Adrien Plazas <kekun plazas laposte net>
Date: Tue Nov 27 09:33:20 2018 +0100
online-accounts: Ellipsize the labels
This will help the window to fit narrow screens even with long
application names.
panels/online-accounts/cc-online-accounts-panel.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/panels/online-accounts/cc-online-accounts-panel.c
b/panels/online-accounts/cc-online-accounts-panel.c
index c23865ed2..edf428dc7 100644
--- a/panels/online-accounts/cc-online-accounts-panel.c
+++ b/panels/online-accounts/cc-online-accounts-panel.c
@@ -164,6 +164,8 @@ add_provider_row (CcGoaPanel *self,
markup = g_strdup_printf ("<b>%s</b>", name);
label = gtk_label_new (NULL);
gtk_widget_show (label);
+ gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
+ gtk_label_set_xalign (GTK_LABEL (label), 0.0f);
gtk_label_set_markup (GTK_LABEL (label), markup);
gtk_container_add (GTK_CONTAINER (row_grid), label);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]