[gnome-control-center/gbsneto/fix-long-user-names: 19/19] user-accounts: Ellipsize real name label
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gbsneto/fix-long-user-names: 19/19] user-accounts: Ellipsize real name label
- Date: Wed, 13 Feb 2019 15:07:16 +0000 (UTC)
commit cd0954be34dd383cc6227ff400ba16370683679e
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Feb 7 16:07:52 2019 -0200
user-accounts: Ellipsize real name label
In the User Accounts panel's carousel, longer real names
push the window geometry to super wide levels -- even with
the 255-char limitation in place.
Fix that by ellipsizing the real name label.
panels/user-accounts/cc-user-panel.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/panels/user-accounts/cc-user-panel.c b/panels/user-accounts/cc-user-panel.c
index 8edb5a594..07a12dda9 100644
--- a/panels/user-accounts/cc-user-panel.c
+++ b/panels/user-accounts/cc-user-panel.c
@@ -204,6 +204,7 @@ create_carousel_entry (CcUserPanel *self, ActUser *user)
get_real_or_user_name (user));
widget = gtk_label_new (label);
gtk_label_set_use_markup (GTK_LABEL (widget), TRUE);
+ gtk_label_set_ellipsize (GTK_LABEL (widget), PANGO_ELLIPSIZE_END);
gtk_widget_set_margin_top (widget, 5);
gtk_box_pack_start (GTK_BOX (box), widget, FALSE, TRUE, 0);
g_free (label);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]