]> git.pld-linux.org Git - packages/cinnamon.git/blob - revert_25aef37.patch
- updated to 5.0.5
[packages/cinnamon.git] / revert_25aef37.patch
1 Index: Cinnamon-3.6.6/files/usr/share/cinnamon/cinnamon-settings-users/cinnamon-settings-users.py
2 ===================================================================
3 --- Cinnamon-3.6.6.orig/files/usr/share/cinnamon/cinnamon-settings-users/cinnamon-settings-users.py
4 +++ Cinnamon-3.6.6/files/usr/share/cinnamon/cinnamon-settings-users/cinnamon-settings-users.py
5 @@ -53,10 +53,9 @@
6              print(detail)
7  
8      def _on_entry_changed(self, entry):
9 -        name = entry.get_text()
10 -        if " " in name or name.lower() != name:
11 +        if " " in entry.get_text():
12              entry.set_icon_from_icon_name(Gtk.EntryIconPosition.SECONDARY, "dialog-warning-symbolic")
13 -            entry.set_icon_tooltip_text(Gtk.EntryIconPosition.SECONDARY, _("The group name cannot contain upper-case or space characters"))
14 +            entry.set_icon_tooltip_text(Gtk.EntryIconPosition.SECONDARY, _("The group name cannot contain space characters"))
15              self.set_response_sensitive(Gtk.ResponseType.OK, False)
16          else:
17              entry.set_icon_from_icon_name(Gtk.EntryIconPosition.SECONDARY, None)
18 @@ -367,9 +366,9 @@
19          fullname = self.realname_entry.get_text()
20          username = self.username_entry.get_text()
21          valid = True
22 -        if re.search('[^a-z0-9_.-]', username):
23 +        if " " in username:
24              self.username_entry.set_icon_from_icon_name(Gtk.EntryIconPosition.SECONDARY, "dialog-warning-symbolic")
25 -            self.username_entry.set_icon_tooltip_text(Gtk.EntryIconPosition.SECONDARY, _("Invalid username"))
26 +            self.username_entry.set_icon_tooltip_text(Gtk.EntryIconPosition.SECONDARY, _("The username cannot contain space characters"))
27              valid = False
28          else:
29              self.username_entry.set_icon_from_icon_name(Gtk.EntryIconPosition.SECONDARY, None)
30
This page took 0.085569 seconds and 3 git commands to generate.