1 --- a/files/usr/lib/cinnamon-settings-users/cinnamon-settings-users.py 2014-09-30 09:55:06.000000000 +0100
2 +++ b/files/usr/lib/cinnamon-settings-users/cinnamon-settings-users.py 2014-09-30 19:20:48.151829597 +0100
3 @@ -45,10 +45,9 @@ class GroupDialog (Gtk.Dialog):
6 def _on_entry_changed(self, entry):
7 - name = entry.get_text()
8 - if " " in name or name.lower() != name:
9 + if " " in entry.get_text():
10 entry.set_icon_from_stock(Gtk.EntryIconPosition.SECONDARY, Gtk.STOCK_DIALOG_WARNING)
11 - entry.set_icon_tooltip_text(Gtk.EntryIconPosition.SECONDARY, _("The group name cannot contain upper-case or space characters"))
12 + entry.set_icon_tooltip_text(Gtk.EntryIconPosition.SECONDARY, _("The group name cannot contain space characters"))
13 self.set_response_sensitive(Gtk.ResponseType.OK, False)
15 entry.set_icon_from_stock(Gtk.EntryIconPosition.SECONDARY, None)
16 @@ -314,9 +313,9 @@ class NewUserDialog(Gtk.Dialog):
17 fullname = self.realname_entry.get_text()
18 username = self.username_entry.get_text()
20 - if " " in username or username.lower() != username:
22 self.username_entry.set_icon_from_stock(Gtk.EntryIconPosition.SECONDARY, Gtk.STOCK_DIALOG_WARNING)
23 - self.username_entry.set_icon_tooltip_text(Gtk.EntryIconPosition.SECONDARY, _("The username cannot contain upper-case or space characters"))
24 + self.username_entry.set_icon_tooltip_text(Gtk.EntryIconPosition.SECONDARY, _("The username cannot contain space characters"))
27 self.username_entry.set_icon_from_stock(Gtk.EntryIconPosition.SECONDARY, None)