[gnome-system-tools/users-ui-redesign] Limit the login length that can be entered
- From: Milan Bouchet-Valat <milanbv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-system-tools/users-ui-redesign] Limit the login length that can be entered
- Date: Mon, 30 Nov 2009 21:10:38 +0000 (UTC)
commit ac31194846d2eb6ff1262d5c8064712e0bc804bf
Author: Milan Bouchet-Valat <nalimilan club fr>
Date: Sat Nov 28 15:47:03 2009 +0100
Limit the login length that can be entered
Use set_login_length() again to ensure the login is not too long for the system's value.
src/users/user-settings.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/users/user-settings.c b/src/users/user-settings.c
index 7f138bc..d01831f 100644
--- a/src/users/user-settings.c
+++ b/src/users/user-settings.c
@@ -1046,6 +1046,8 @@ on_user_new (GtkButton *button, gpointer user_data)
gtk_window_set_focus (GTK_WINDOW (user_new_dialog), user_name);
+ set_login_length (login_entry);
+
/* run dialog with correct settings */
gtk_window_set_transient_for (GTK_WINDOW (user_new_dialog),
GTK_WINDOW (tool->main_dialog));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]