[gnome-control-center/gbsneto/fix-long-user-names: 1/2] user-panels: Limit full name length
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gbsneto/fix-long-user-names: 1/2] user-panels: Limit full name length
- Date: Thu, 7 Feb 2019 18:10:56 +0000 (UTC)
commit 17602013538966a1af764891641a0e70ccd1bcf9
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Feb 7 16:01:30 2019 -0200
user-panels: Limit full name length
GNOME Settings allows limitless full names, which is
actually accepted by most of the stack but may break
GNOME Settings, GNOME Shell and other user-visible
applications that show the user names.
Limit the user full name entries to 255 characters,
which is the same value used by GNOME Initial Setup.
panels/user-accounts/cc-add-user-dialog.ui | 1 +
panels/user-accounts/cc-user-panel.ui | 1 +
2 files changed, 2 insertions(+)
---
diff --git a/panels/user-accounts/cc-add-user-dialog.ui b/panels/user-accounts/cc-add-user-dialog.ui
index 9e797f9bd..12a253ac4 100644
--- a/panels/user-accounts/cc-add-user-dialog.ui
+++ b/panels/user-accounts/cc-add-user-dialog.ui
@@ -159,6 +159,7 @@
<child>
<object class="GtkEntry" id="local_name_entry">
<property name="visible">True</property>
+ <property name="max-length">255</property>
<property name="can_focus">True</property>
<property name="activates_default">True</property>
<property name="hexpand">True</property>
diff --git a/panels/user-accounts/cc-user-panel.ui b/panels/user-accounts/cc-user-panel.ui
index 1daf4968a..5825a1602 100644
--- a/panels/user-accounts/cc-user-panel.ui
+++ b/panels/user-accounts/cc-user-panel.ui
@@ -193,6 +193,7 @@
<child>
<object class="GtkEntry" id="full_name_entry">
<property name="visible">True</property>
+ <property name="max-length">255</property>
<property name="width-chars">30</property>
<property name="max-width-chars">30</property>
<property name="valign">GTK_ALIGN_CENTER</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]